add options requestCert and rejectUnauthorized

This commit is contained in:
AJ ONeal 2016-04-16 09:38:30 -06:00
parent c3da430e53
commit 51a34718cb
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ module.exports.create = function (opts) {
, cert: certInfo.fullchain || certInfo.cert // fullchain.pem (cert.pem + '\n' + chain.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) , ca: (opts.httpsOptions.ca ? opts.httpsOptions.ca + '\n' + certInfo.ca : certInfo.ca)
, crl: opts.httpsOptions.crl , crl: opts.httpsOptions.crl
, requestCert: opts.httpsOptions.requestCert
, rejectUnauthorized: opts.httpsOptions.rejectUnauthorized
}); });
} catch(e) { } catch(e) {
console.warn("[Sanity Check Fail]: a weird object was passed back through le.fetch to lex.fetch"); console.warn("[Sanity Check Fail]: a weird object was passed back through le.fetch to lex.fetch");