From 6ecfef3dad2f143704c02ed44568160f94a0987b Mon Sep 17 00:00:00 2001 From: Mark Kremers Date: Thu, 14 Apr 2016 10:55:08 +0200 Subject: [PATCH] Allow for custom ca set on httpsOptions to be used in the creteSecureContext call. --- lib/sni-callback.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sni-callback.js b/lib/sni-callback.js index fcfb3c4..fa78034 100644 --- a/lib/sni-callback.js +++ b/lib/sni-callback.js @@ -102,6 +102,7 @@ module.exports.create = function (opts) { certInfo.tlsContext = tls.createSecureContext({ key: certInfo.privkey || certInfo.key // privkey.pem , cert: certInfo.fullchain || certInfo.cert // fullchain.pem (cert.pem + '\n' + chain.pem) + , ca: (opts.httpsOptions.ca ? opts.httpsOptions.ca + '\n' + certInfo.ca : certInfo.ca) }); } catch(e) { console.warn("[Sanity Check Fail]: a weird object was passed back through le.fetch to lex.fetch");