diff --git a/model/CorouteInternalServer.js b/model/CorouteInternalServer.js index d9104a9..1c56c40 100644 --- a/model/CorouteInternalServer.js +++ b/model/CorouteInternalServer.js @@ -72,8 +72,9 @@ module.exports = class CorouteInternalServer { async startServer () { if (this.options.hasOwnProperty('https')) { this.internalServer = https.createServer({ - 'key': (await pfs.readFile(path.resolve(process.cwd(), this.options.https.key))).toString(), - 'cert': (await pfs.readFile(path.resolve(process.cwd(), this.options.https.cert))).toString() + 'key': await pfs.readFile(path.resolve(process.cwd(), this.options.https.key)), + 'cert': await pfs.readFile(path.resolve(process.cwd(), this.options.https.cert)), + 'passphrase': this.options.https.passphrase }, this.app.serverHandler) } else { diff --git a/package.json b/package.json index 1790e0c..bdd4a7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coroute", - "version": "1.1.0", + "version": "1.1.1", "description": "The awesome Node.js HTTP reverse-proxy server!", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"