What version of Go are you using (go version)?
go1.19beta1
What did you do?
- Create an
x509.RevocationList with an entry which has extensions (such as a reasonCode)
- Use
x509.CreateRevocationList to sign and serialize the CRL to DER
- 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.
What version of Go are you using (
go version)?go1.19beta1
What did you do?
x509.RevocationListwith an entry which has extensions (such as a reasonCode)x509.CreateRevocationListto sign and serialize the CRL to DERx509.ParseRevocationListto parse the CRLFull 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.