Browse Source

v2.6.7: do not reset default cert if provided by user

beta v2.6.7
AJ ONeal 5 years ago
parent
commit
f9d3ec5f76
  1. 6
      index.js
  2. 2
      package.json

6
index.js

@ -153,6 +153,12 @@ module.exports.create = function (opts) {
});
});
};
if (greenlock.tlsOptions.cert) {
server._hasDefaultSecureContext = true;
if (greenlock.tlsOptions.cert.toString('ascii').split("BEGIN").length < 3) {
console.warn("Invalid certificate file. 'tlsOptions.cert' should contain cert.pem (certificate file) *and* chain.pem (intermediate certificates) seperated by an extra newline (CRLF)");
}
}
server = https.createServer(
greenlock.tlsOptions
, greenlock.middleware.sanitizeHost(function (req, res) {

2
package.json

@ -1,6 +1,6 @@
{
"name": "greenlock-express",
"version": "2.6.6",
"version": "2.6.7",
"description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.",
"main": "index.js",
"homepage": "https://git.coolaj86.com/coolaj86/greenlock-express.js",

Loading…
Cancel
Save