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
Per discussion with Roland Shoemaker, this updates
x509.CreateRevocationList to mirror the behavior of
x509.CreateCertificate, creating an internal struct for the ASN.1
encoding of the CRL. This allows us to switch the Issuer field type to
asn1.RawValue, bypassing the round-tripping issues of pkix.Name in most
scenarios.
Per linked ticket, this resolves issues where a non-Go created
certificate can be used to create CRLs which aren't correctly attested
to that certificate. In rare cases where the CRL issuer is validated
against the certificate's issuer (such as the linked JDK example), this
can result in failing to check this CRL for the candidate certificate.
Fixesgolang#53754
Signed-off-by: Alexander Scheel <[email protected]>
t.Fatalf("Expected issuer.RawSubject, parsedCRL.RawIssuer to be the same; wanted: %v, got: %v", hex.EncodeToString(tc.issuer.RawSubject), hex.EncodeToString(parsedCRL.RawIssuer))
2768
+
}
2769
+
} else {
2770
+
// When we hack our custom Subject in the test cases above,
2771
+
// we don't set the additional fields (such as Names) in the
2772
+
// hacked issuer. Round-trip a parsing of pkix.Name so that
2773
+
// we add these missing fields for the comparison.
0 commit comments