oops forget codecertname includes extra data at the end #6999

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2025-05-18 16:37:24 +01:00
parent 0feaec0d6b
commit b64b1436cb

View File

@ -1087,7 +1087,7 @@ module.exports.CertificateOperations = function (parent) {
// Check if we have correct certificates.
if (obj.compareCertificateNames(r.CommonNames, commonName) == false) { console.log("Error: " + commonName + " does not match name in TLS certificate: " + r.CommonNames.join(', ')); forceWebCertGen = 1; } else { r.CommonName = commonName; }
if (r.AmtMpsName != mpsCommonName) { forceMpsCertGen = 1; }
if (r.CodeCertName != commonName) { forceCodeCertGen = 1; }
if (r.CodeCertName.startsWith(commonName) === false) { forceCodeCertGen = 1; }
if (args.keepcerts == true) { forceWebCertGen = 0; forceMpsCertGen = 0; forceCodeCertGen = 0; r.CommonName = commonName; }
// If the certificates matches what we want, use them.