Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go1.19] crypto/x509: add new CRL parser, deprecate old one #40

Open
emmansun opened this issue Apr 8, 2022 · 1 comment
Open

[go1.19] crypto/x509: add new CRL parser, deprecate old one #40

emmansun opened this issue Apr 8, 2022 · 1 comment
Labels

Comments

@emmansun
Copy link
Owner

emmansun commented Apr 8, 2022

golang/go@2de2f6d

Adds a new, cryptobyte based, CRL parser, which returns a
x509.RevocaitonList, rather than a pkix.CertificateList. This allows us
to return much more detailed information, as well as leaving open the
option of adding further information since RevocationList is not a
direct ASN.1 representation like pkix.CertificateList. Additionally
a new method is added to RevocationList, CheckSignatureFrom, which is
analogous to the method with the same name on Certificate, which
properly checks that the signature is from an issuing certiifcate.

This change also deprecates a number of older CRL related functions and
types, which have been replaced with the new functionality introduced
in this change:

  • crypto/x509.ParseCRL
  • crypto/x509.ParseDERCRL
  • crypto/x509.CheckCRLSignature
  • crypto/x509/pkix.CertificateList
  • crypto/x509/pkix.TBSCertificateList
@emmansun
Copy link
Owner Author

The structure Certificate's change will be in golang 1.18.

@emmansun emmansun changed the title [sync] crypto/x509: add new CRL parser, deprecate old one [go1.18][sync] crypto/x509: add new CRL parser, deprecate old one Aug 19, 2022
@emmansun emmansun changed the title [go1.18][sync] crypto/x509: add new CRL parser, deprecate old one [go1.19][sync] crypto/x509: add new CRL parser, deprecate old one Mar 7, 2023
@emmansun emmansun changed the title [go1.19][sync] crypto/x509: add new CRL parser, deprecate old one [go1.19] crypto/x509: add new CRL parser, deprecate old one Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant