Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go version go1.5 linux/amd64
- What operating system and processor architecture are you using (
go env)?
GOARCH="amd64"
GOHOSTOS="linux"
- What did you do?
I created a client certificate with CN field set to "test/abc=1234"
- 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"
- 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"
Please answer these questions before submitting your issue. Thanks!
go version)?go version go1.5 linux/amd64
go env)?GOARCH="amd64"
GOHOSTOS="linux"
I created a client certificate with CN field set to "test/abc=1234"
chains, _ := mycert.Verify(options)
cn := chains[0].Subject.CommonName
, where mycert is the certificate I created in the above step. I was expecting
cnto be set to "test/abc=1234"cnwas 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"