Skip to content

crypto/x509: ParseRevocationList misses entry extensions #53592

Description

@aarongable

What version of Go are you using (go version)?

go1.19beta1

What did you do?

  1. Create an x509.RevocationList with an entry which has extensions (such as a reasonCode)
  2. Use x509.CreateRevocationList to sign and serialize the CRL to DER
  3. Use x509.ParseRevocationList to parse the CRL

Full demonstration: https://go.dev/play/p/ejqFzRaValY?v=gotip

What did you expect to see?

The exact same in-memory structures should be recreated. In particular, the individual entries should still have all of their extensions.

What did you see instead?

Individual entries are missing their extensions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions