Skip to content

Commit 4e7a1de

Browse files
authored
Add CA and Passphrase for custom HTTPS
Add CA and Passphrase for custom HTTPS certification.
1 parent 21edcc1 commit 4e7a1de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/server/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ var utils = {
1616
getKeyAndCert: function (options) {
1717
return {
1818
key: fs.readFileSync(options.getIn(["https", "key"]) || filePath.join(__dirname, "certs/server.key")),
19-
cert: fs.readFileSync(options.getIn(["https", "cert"]) || filePath.join(__dirname, "certs/server.crt"))
19+
cert: fs.readFileSync(options.getIn(["https", "cert"]) || filePath.join(__dirname, "certs/server.crt")),
20+
ca: fs.readFileSync(options.getIn(["https", "ca"]) || filePath.join(__dirname, "certs/server.csr")),
21+
passphrase: options.getIn(["https", "passphrase"]) || ''
2022
};
2123
},
2224
/**

0 commit comments

Comments
 (0)