Skip to content

Commit

Permalink
Merge pull request #63 from nvcexploder/develop
Browse files Browse the repository at this point in the history
Added in SSL cert passphrase to https server creation from settings.
  • Loading branch information
thegoleffect committed Aug 31, 2012
2 parents 4b8c7e3 + 354475b commit 8676f39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,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 {
Expand Down

0 comments on commit 8676f39

Please sign in to comment.