From 68763137e9120fcbf1bfedf33e0c81a0270a251a Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Wed, 30 Aug 2023 12:29:09 +0100 Subject: [PATCH] if amt algorithm use it --- certoperations.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/certoperations.js b/certoperations.js index 04364ccb..a737f9a7 100644 --- a/certoperations.js +++ b/certoperations.js @@ -262,7 +262,9 @@ module.exports.CertificateOperations = function (parent) { acmconfig.cn = certCommonName.value; } } - acmconfig.hashAlgorithm = r.certs[0].md.algorithm; + if(r.certs[0].md.algorithm){ + acmconfig.hashAlgorithm = r.certs[0].md.algorithm; + } delete acmconfig.cert; delete acmconfig.certpass;