Skip to content

crypto/x509: Wrong error text when failing to unmarshal key-id #15371

Description

@phayes

See: https://github.com/golang/go/blob/master/src/crypto/x509/x509.go#L1136

The error returned when unmarshmaling a key-id reads x509: trailing data after X.509 authority key-id. However, this is not the authority-key id, it is the key-id.

Instead it should read x509: trailing data after X.509 key-id

It looks like someone copied and pasted the error from here (https://github.com/golang/go/blob/master/src/crypto/x509/x509.go#L1102) without making the needed change to the text.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions