You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Certificate strength check no longer mandates SHA2, rather it
cares that the certs digest algorithm is greater or equal to the file digest
algorithm, and that all intermediates are as strong as the leaf.
verboseWriter.LogSignatureMessage(signatureInfo,$"Certificate {element.Certificate.Thumbprint} in chain uses {element.Certificate.SignatureAlgorithm.FriendlyName} for its signature algorithm instead of SHA2.");
38
-
strongSha2Chain=false;
39
-
break;
33
+
verboseWriter.LogSignatureMessage(signatureInfo,$"Certificate {element.Certificate.Thumbprint} in chain uses {element.Certificate.SignatureAlgorithm.FriendlyName} for its signature algorithm instead of at least {signatureInfo.DigestAlgorithm.FriendlyName}.");
34
+
strongShaChain=false;
40
35
}
36
+
//Check that all intermediates are at least as strong as the leaf.
verboseWriter.LogSignatureMessage(signatureInfo,$"Certificate {element.Certificate.Thumbprint} in chain uses {element.Certificate.SignatureAlgorithm.FriendlyName} for its signature algorithm instead of at least {signatureInfo.DigestAlgorithm.FriendlyName}.");
40
+
}
41
+
}
42
+
returnstrongShaChain;
43
+
}
44
+
45
+
//Returns a value for comparison. These values are not intended to be a bit size, but only used for comparing
0 commit comments