Added Let's Encrypt exception check.

This commit is contained in:
Ylian Saint-Hilaire 2021-03-08 01:41:12 -08:00
parent fc1e084576
commit 915eb44f57
2 changed files with 15 additions and 3 deletions

View File

@ -156,7 +156,8 @@ module.exports.CreateLetsEncrypt = function (parent) {
obj.requestCertificate = function () {
if (obj.pendingRequest == true) return;
if (obj.configOk == false) { obj.log("Can't request cert, invalid configuration.");return; }
if (obj.configOk == false) { obj.log("Can't request cert, invalid configuration."); return; }
if (acme.forge == null) { obj.log("Forge not setup in ACME, unable to continue."); return; }
obj.pendingRequest = true;
// Create a private key

View File

@ -36,6 +36,9 @@
"sample-config-advanced.json"
],
"dependencies": {
"acme-client": "^4.1.3",
"archiver": "^4.0.2",
"archiver-zip-encrypted": "^1.0.8",
"body-parser": "^1.19.0",
"cbor": "~5.2.0",
"compression": "^1.7.4",
@ -44,14 +47,22 @@
"express": "^4.17.0",
"express-handlebars": "^3.1.0",
"express-ws": "^4.0.0",
"image-size": "^0.9.4",
"ipcheck": "^0.1.0",
"minimist": "^1.2.0",
"minimist": "^1.2.5",
"mongodb": "^3.6.4",
"multiparty": "^4.2.1",
"nedb": "^1.8.0",
"node-forge": "^0.10.0",
"node-rdpjs-2": "^0.3.5",
"node-windows": "^1.0.0-beta.5",
"otplib": "^10.2.3",
"saslprep": "^1.0.3",
"web-push": "^3.4.4",
"ws": "^6.2.1",
"xmldom": "^0.1.27",
"yauzl": "^2.10.0"
"yauzl": "^2.10.0",
"yubikeyotp": "^0.2.0"
},
"repository": {
"type": "git",