Added Let's Encrypt exception check.
Ylian Saint-Hilaire committed
Mar 8, 2021 at 01:41 UTC
915eb44f57815f1cab31ae8f87a285accdf91edf
2 files changed
+15
-3
letsencrypt.js
+2
-1
@@ -156,7 +156,8 @@ module.exports.CreateLetsEncrypt = function (parent) {
156
157
obj.requestCertificate = function () {
158
if (obj.pendingRequest == true) return;
159
- if (obj.configOk == false) { obj.log("Can't request cert, invalid configuration.");return; }
159
+ if (obj.configOk == false) { obj.log("Can't request cert, invalid configuration."); return; }
160
+ if (acme.forge == null) { obj.log("Forge not setup in ACME, unable to continue."); return; }
161
obj.pendingRequest = true;
162
163
// Create a private key
package.json
+13
-2
@@ -36,6 +36,9 @@
36
"sample-config-advanced.json"
37
],
38
"dependencies": {
39
+ "acme-client": "^4.1.3",
40
+ "archiver": "^4.0.2",
41
+ "archiver-zip-encrypted": "^1.0.8",
42
"body-parser": "^1.19.0",
43
"cbor": "~5.2.0",
44
"compression": "^1.7.4",
@@ -44,14 +47,22 @@
47
"express": "^4.17.0",
48
"express-handlebars": "^3.1.0",
49
"express-ws": "^4.0.0",
50
+ "image-size": "^0.9.4",
51
"ipcheck": "^0.1.0",
48
- "minimist": "^1.2.0",
52
+ "minimist": "^1.2.5",
53
+ "mongodb": "^3.6.4",
54
"multiparty": "^4.2.1",
55
"nedb": "^1.8.0",
56
"node-forge": "^0.10.0",
57
+ "node-rdpjs-2": "^0.3.5",
58
+ "node-windows": "^1.0.0-beta.5",
59
+ "otplib": "^10.2.3",
60
+ "saslprep": "^1.0.3",
61
+ "web-push": "^3.4.4",
62
"ws": "^6.2.1",
63
"xmldom": "^0.1.27",
54
- "yauzl": "^2.10.0"
64
+ "yauzl": "^2.10.0",
65
+ "yubikeyotp": "^0.2.0"
66
},
67
"repository": {
68
"type": "git",