go: crypto/x509: ParseCertificate error: PrintableString contains invalid character
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
1.8
What operating system and processor architecture are you using (go env
)?
mac
What did you do?
parse certificate
If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best.
https://play.golang.org/p/txkxbM56OI
What did you expect to see?
parse certificate success
What did you see instead?
asn1: syntax error: PrintableString contains invalid character
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (10 by maintainers)
Correct, but their certificate indicates that this is a PrintableString. They could choose to use another encoding, but they chose PrintableString.