1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed session IP check still being performed when CookieIpCheck is false.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-24 12:22:01 -08:00
parent db707b6525
commit 15e1718296
2 changed files with 5 additions and 5 deletions

View file

@ -233,7 +233,7 @@ module.exports.CertificateOperations = function (parent) {
// Compute the SHA256 and SHA1 hashes of the root certificate
for (var k in r.certs) {
if (r.certs[k].subject.hash != r.certs[k].issuer.hash) { amtacmactivation.acmCertErrors.push("Invalid Intel AMT ACM certificate chain."); continue; }
if (r.certs[k].subject.hash != r.certs[k].issuer.hash) continue;
const certdata = obj.forge.asn1.toDer(obj.pki.certificateToAsn1(r.certs[k])).data;
var md = obj.forge.md.sha256.create();
md.update(certdata);