1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-15 04:21:51 +00:00

if amt algorithm use it

This commit is contained in:
Simon Smith 2023-08-30 12:29:09 +01:00 committed by GitHub
parent b1d2d1aea9
commit 68763137e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,9 @@ module.exports.CertificateOperations = function (parent) {
acmconfig.cn = certCommonName.value; 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.cert;
delete acmconfig.certpass; delete acmconfig.certpass;