Skip to content

crypto/x509: parse additional fields in CertificateRequest #37172

Description

@chauncyc

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

$ 1.13.4

ParseCertificate parses many common extensions and puts them in the Certificate struct. I'd like for ParseCertificateRequest to do the same. Specifically, I currently manually parse the following fields from CertificateRequest.Extensions, and would like for them to be added to CertificateRequest, with the corresponding changes to ParseCertificateRequest and CreateCertificateRequest, exactly as they're implemented for Certificate:

  • KeyUsage
  • ExtKeyUsage
  • UnknownExtKeyUsage
  • IsCA
  • MaxPathLen
  • BasicConstraintsValid
  • MaxPathLenZero
  • SubjectKeyId
  • PolicyIdentifier

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.Proposal-AcceptedProposal-CryptoProposal related to crypto packages or other security issues

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions