diff --git a/letsencrypt.js b/letsencrypt.js index b9df3234..68cf4bf4 100644 --- a/letsencrypt.js +++ b/letsencrypt.js @@ -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 diff --git a/package.json b/package.json index 56081a20..b64e5e54 100644 --- a/package.json +++ b/package.json @@ -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",