if amt algorithm use it

Simon Smith committed Aug 30, 2023 at 12:29 UTC 68763137e9120fcbf1bfedf33e0c81a0270a251a
1 file changed +3 -1
certoperations.js
+3 -1
@@ -262,7 +262,9 @@ module.exports.CertificateOperations = function (parent) {
262 acmconfig.cn = certCommonName.value;
263 }
264 }
265 - acmconfig.hashAlgorithm = r.certs[0].md.algorithm;
265 + if(r.certs[0].md.algorithm){
266 + acmconfig.hashAlgorithm = r.certs[0].md.algorithm;
267 + }
268
269 delete acmconfig.cert;
270 delete acmconfig.certpass;