Skip to content

Commit cf166e3

Browse files
authored
Merge pull request #1149 from ikwhan-chang/master
Add CA and Passphrase for custom HTTPS
2 parents 2470fc2 + 4e7a1de commit cf166e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/server/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ var utils = {
2222
getKeyAndCert: function (options) {
2323
return {
2424
key: fs.readFileSync(options.getIn(["https", "key"]) || filePath.join(__dirname, "certs/server.key")),
25-
cert: fs.readFileSync(options.getIn(["https", "cert"]) || filePath.join(__dirname, "certs/server.crt"))
25+
cert: fs.readFileSync(options.getIn(["https", "cert"]) || filePath.join(__dirname, "certs/server.crt")),
26+
ca: fs.readFileSync(options.getIn(["https", "ca"]) || filePath.join(__dirname, "certs/server.csr")),
27+
passphrase: options.getIn(["https", "passphrase"]) || ''
2628
};
2729
},
2830
/**

0 commit comments

Comments
 (0)