1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

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