Skip to content

Commit

Permalink
Added in SSL cert passphrase to https server creation from settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvcexploder committed Jul 20, 2012
1 parent dc16982 commit 354475b
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 @@ -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 {
Expand Down

0 comments on commit 354475b

Please sign in to comment.