Skip to content

crypto/x509: CommonName truncated at slash #15256

Description

@huang195

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.5 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="amd64"
    GOHOSTOS="linux"
  3. What did you do?
    I created a client certificate with CN field set to "test/abc=1234"
  4. What did you expect to see?
    chains, _ := mycert.Verify(options)
    cn := chains[0].Subject.CommonName
    , where mycert is the certificate I created in the above step. I was expecting cn to be set to "test/abc=1234"
  5. What did you see instead?
    cn was actually set to "test". I lost the trailing part.
    However, if I do a openssl x509 -in mycert -text, I can see the CN field is properly set to "test/abc=1234"

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

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions