diff --git a/certoperations.js b/certoperations.js index a737f9a7..38dfb5f6 100644 --- a/certoperations.js +++ b/certoperations.js @@ -262,7 +262,7 @@ module.exports.CertificateOperations = function (parent) { acmconfig.cn = certCommonName.value; } } - if(r.certs[0].md.algorithm){ + if(r.certs[0].md){ acmconfig.hashAlgorithm = r.certs[0].md.algorithm; }