Correct key semantics
This commit is contained in:
parent
e51bca7bf7
commit
a0c778b9c3
1 changed files with 3 additions and 4 deletions
|
|
@ -296,13 +296,12 @@ const server = program => {
|
|||
res.status(500).send({ status: 500, errorMessage: 'internal error' })
|
||||
})
|
||||
|
||||
const CA =
|
||||
program.httpsCert || LightningServices.servicesConfig.lndCertPath
|
||||
const CA_KEY = program.httpsCertKey || CA.replace('cert', 'key')
|
||||
const CA = program.httpsCert
|
||||
const CA_KEY = program.httpsCertKey
|
||||
|
||||
const createServer = () => {
|
||||
try {
|
||||
if (LightningServices.servicesConfig.lndCertPath && program.useTLS) {
|
||||
if (program.useTLS) {
|
||||
const key = FS.readFileSync(CA_KEY, 'utf-8')
|
||||
const cert = FS.readFileSync(CA, 'utf-8')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue