Skip to content

crypto/x509: CreateCertificate should omit extensions if there aren't any #52319

Description

@rolandshoemaker

When creating a certificate, if there are no extensions, the extensions SEQUENCE should be omitted, per RFC 5280 (SEQUENCE SIZE (1..MAX)). Fix is relatively simple.

Example of a cert that has an empty extensions SEQUENCE (generated using https://go.dev/play/p/QK11453Bcu3.)

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

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions