Added indication of what certs are missing (#4299)
ylianst committed
Jul 22, 2022 at 20:40 UTC
60e7509881543990d1bc5a1dd23f54d0c25eff4d
2 files changed
+10
-2
certoperations.js
+9
-1
@@ -991,7 +991,15 @@ module.exports.CertificateOperations = function (parent) {
991
return r;
992
}
993
}
994
- if (parent.configurationFiles != null) { console.log("Error: Vault/Database missing some certificates."); process.exit(0); return null; }
994
+ if (parent.configurationFiles != null) {
995
+ console.log("Error: Vault/Database missing some certificates.");
996
+ if (r.root == null) { console.log(' Code signing certificate is missing.'); }
997
+ if (r.web == null) { console.log(' HTTPS web certificate is missing.'); }
998
+ if (r.mps == null) { console.log(' Intel AMT MPS certificate is missing.'); }
999
+ if (r.agent == null) { console.log(' Server agent authentication certificate is missing.'); }
1000
+ if (r.codesign == null) { console.log(' Agent code signing certificate is missing.'); }
1001
+ process.exit(0); return null;
1002
+ }
1003
1004
console.log("Generating certificates, may take a few minutes...");
1005
parent.updateServerState('state', 'generatingcertificates');
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
"keywords": [
5
"Remote Device Management",
6
"Remote Device Monitoring",