v2.1.5 fix CRLF issue with fullchain
This commit is contained in:
parent
19dd9a95f4
commit
c92dde1b87
3
index.js
3
index.js
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue