From 51a34718cb9564a1e3ac6230a91cd8e90ca819a5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 16 Apr 2016 09:38:30 -0600 Subject: [PATCH] add options requestCert and rejectUnauthorized --- lib/sni-callback.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sni-callback.js b/lib/sni-callback.js index 1afef6f..185f49e 100644 --- a/lib/sni-callback.js +++ b/lib/sni-callback.js @@ -104,6 +104,8 @@ module.exports.create = function (opts) { , cert: certInfo.fullchain || certInfo.cert // fullchain.pem (cert.pem + '\n' + chain.pem) , ca: (opts.httpsOptions.ca ? opts.httpsOptions.ca + '\n' + certInfo.ca : certInfo.ca) , crl: opts.httpsOptions.crl + , requestCert: opts.httpsOptions.requestCert + , rejectUnauthorized: opts.httpsOptions.rejectUnauthorized }); } catch(e) { console.warn("[Sanity Check Fail]: a weird object was passed back through le.fetch to lex.fetch");