Added indication of what certs are missing (#4299)

This commit is contained in:
ylianst 2022-07-22 20:40:51 -07:00
parent 6d1dc263f4
commit 60e7509881
2 changed files with 10 additions and 2 deletions

View File

@ -991,7 +991,15 @@ module.exports.CertificateOperations = function (parent) {
return r;
}
}
if (parent.configurationFiles != null) { console.log("Error: Vault/Database missing some certificates."); process.exit(0); return null; }
if (parent.configurationFiles != null) {
console.log("Error: Vault/Database missing some certificates.");
if (r.root == null) { console.log(' Code signing certificate is missing.'); }
if (r.web == null) { console.log(' HTTPS web certificate is missing.'); }
if (r.mps == null) { console.log(' Intel AMT MPS certificate is missing.'); }
if (r.agent == null) { console.log(' Server agent authentication certificate is missing.'); }
if (r.codesign == null) { console.log(' Agent code signing certificate is missing.'); }
process.exit(0); return null;
}
console.log("Generating certificates, may take a few minutes...");
parent.updateServerState('state', 'generatingcertificates');

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "1.0.57",
"version": "1.0.58",
"keywords": [
"Remote Device Management",
"Remote Device Monitoring",