Skip to content

Commit

Permalink
Add cipher suite and SSL method to SSL connection options
Browse files Browse the repository at this point in the history
  • Loading branch information
ottijp committed Feb 8, 2017
1 parent ca2e3b5 commit b655a30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,13 @@ Connection.prototype._getSSLOptions = function() {
this.sslConnectionOptions.rejectUnauthorized = this.options.ssl.rejectUnauthorized;
this.sslConnectionOptions.passphrase = this.options.ssl.passphrase;

if (this.options.ssl.ciphers) {
this.sslConnectionOptions.ciphers = this.options.ssl.ciphers;
}
if (this.options.ssl.secureProtocol) {
this.sslConnectionOptions.secureProtocol = this.options.ssl.secureProtocol;
}

return this.sslConnectionOptions;
};

Expand Down

0 comments on commit b655a30

Please sign in to comment.