Skip to content

crypto/x509: CreateCertificate will generate duplicate certificate policies if PolicyIdentifiers and Policies and populated #63909

Closed
@rolandshoemaker

Description

@rolandshoemaker

If PolicyIdentifiers and Policies have the same OIDs (i.e., because you parsed a certificate using ParseCertificate and are using it as a template), CreateCertificate will create a certificate policies extension that contains duplicate OIDs.

Also Policies isn't documented as being used in CreateCertificate

Activity

gopherbot

gopherbot commented on Nov 2, 2023

@gopherbot
Contributor

Change https://go.dev/cl/539297 mentions this issue: crypto/x509: fix certificate policy marshaling

added this to the Go1.22 milestone on Sep 13, 2024
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

    NeedsFixThe path to resolution is known, but the work has not been done.release-blocker

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dmitshur@rolandshoemaker@gopherbot

        Issue actions

          crypto/x509: CreateCertificate will generate duplicate certificate policies if PolicyIdentifiers and Policies and populated · Issue #63909 · golang/go