v2.1.5 fix CRLF issue with fullchain

This commit is contained in:
AJ ONeal 2018-04-25 23:01:14 -06:00
parent 19dd9a95f4
commit c92dde1b87
2 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,8 @@ module.exports.create = function (autoSni) {
certs: certs
, tlsContext: 'string' === typeof certs.cert && tls.createSecureContext({
key: certs.privkey
, cert: certs.cert + certs.chain
// backwards/forwards compat
, cert: (certs.cert||'').replace(/[\r\n]+$/, '') + '\r\n' + certs.chain
, rejectUnauthorized: autoSni.tlsOptions.rejectUnauthorized
, requestCert: autoSni.tlsOptions.requestCert // request peer verification

View File

@ -1,11 +1,11 @@
{
"name": "le-sni-auto",
"version": "2.1.4",
"version": "2.1.5",
"description": "An auto-sni strategy for registering and renewing letsencrypt certificates using SNICallback",
"homepage": "https://git.coolaj86.com/coolaj86/le-sni-auto.js",
"main": "index.js",
"dependencies": {
"bluebird": "^3.4.1"
"bluebird": "^3.5.1"
},
"devDependencies": {},
"scripts": {