Skip to content

crypto/x509: ParseRevocationList does not populate Number and AuthorityKeyId fields #53726

Description

@aarongable

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

go1.19rc1

Does this issue reproduce with the latest release?

Yes

What did you do?

Use x509.ParseRevocationList() to parse a CRL which contains the crlNumber and authorityKeyIdentifer extensions (such as one produced using x509.CreateRevocationList()).

See https://go.dev/play/p/6gSi8pmdzBd?v=gotip for a demonstration.

What did you expect to see?

The RevocationList.Number and RevocationList.AuthorityKeyId fields should be populated from the values in their corresponding extensions.

What did you see instead?

The .Number and .AuthorityKeyId fields retain their zero-values.

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

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions