oops forget codecertname includes extra data at the end #6999

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

Simon Smith committed May 18, 2025 at 16:37 UTC b64b1436cbfee9058e2a935bd9522042fc6d834c
1 file changed +1 -1
certoperations.js
+1 -1
@@ -1087,7 +1087,7 @@ module.exports.CertificateOperations = function (parent) {
1087 // Check if we have correct certificates.
1088 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; }
1089 if (r.AmtMpsName != mpsCommonName) { forceMpsCertGen = 1; }
1090 - if (r.CodeCertName != commonName) { forceCodeCertGen = 1; }
1090 + if (r.CodeCertName.startsWith(commonName) === false) { forceCodeCertGen = 1; }
1091 if (args.keepcerts == true) { forceWebCertGen = 0; forceMpsCertGen = 0; forceCodeCertGen = 0; r.CommonName = commonName; }
1092
1093 // If the certificates matches what we want, use them.