generalizing cert path

This commit is contained in:
raven 2022-12-21 20:25:52 -05:00
parent cddc7096a5
commit 0c14c7d5ce

View File

@ -4,8 +4,8 @@ const { Samsung, KEYS, APPS } = require('samsung-tv-control')
const jsonfile = require('jsonfile') const jsonfile = require('jsonfile')
const file = '/home/token.json' const file = '/home/token.json'
var https = require('https'); var https = require('https');
var privateKey = fs.readFileSync('/cert/grwh.work.key', 'utf8'); var privateKey = fs.readFileSync('/cert/cert.key', 'utf8');
var certificate = fs.readFileSync('/cert/grwh.work.cert.combined', 'utf8'); var certificate = fs.readFileSync('/cert/cert.crt', 'utf8');
var credentials = {key: privateKey, cert: certificate}; var credentials = {key: privateKey, cert: certificate};
var cors = require('cors') var cors = require('cors')