What version of Go are you using (go version)?
$ go version
1.13.4
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
Linux Centos 7
What did you do?
Attempted to use "x509.ParseCertificate" on our issuers certificate, but fails due to a "_" character which fails the ASN.1 Spec for PrintableString.
Due to company violations this is not possible. The way to reproduce this is to generate a certificate with a ASN.1 PrintableString field that contains an "_" character and attempt to parse it.
What did you expect to see?
The x509 certificate to be parsed succesfully
What did you see instead?
crypto/x509: ParseCertificate error: PrintableString contains invalid character
What version of Go are you using (
go version)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env)?go envOutputWhat did you do?
Attempted to use "x509.ParseCertificate" on our issuers certificate, but fails due to a "_" character which fails the ASN.1 Spec for PrintableString.
Due to company violations this is not possible. The way to reproduce this is to generate a certificate with a ASN.1 PrintableString field that contains an "_" character and attempt to parse it.
What did you expect to see?
The x509 certificate to be parsed succesfully
What did you see instead?
crypto/x509: ParseCertificate error: PrintableString contains invalid character