diff --git a/lib/server.js b/lib/server.js index 401b7ae48..5fa4f5d0f 100755 --- a/lib/server.js +++ b/lib/server.js @@ -175,6 +175,12 @@ exports.Server = Server = function (host, port, options, routes) { cert: Fs.readFileSync(this.settings.tls.cert) }; + //if certs need a password ... + if( this.settings.tls.passphrase ) { + + tls.passphrase = this.settings.tls.passphrase; + } + this.listener = Https.createServer(tls, listenerEntryFunc); } else {