From b655a30d792a36238f291129a41ca73a6fabb8eb Mon Sep 17 00:00:00 2001 From: ottijp Date: Wed, 8 Feb 2017 16:58:40 +0900 Subject: [PATCH] Add cipher suite and SSL method to SSL connection options --- lib/connection.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/connection.js b/lib/connection.js index d420e7c5..6cf19f73 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -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; };