The error message is bad with this likely corrupt X.509 certificate:
https://play.golang.org/p/I8S80_1P1p
panic: failed to verify certificate: x509: certificate is valid for , not domain-match.badtls.io
I think the certificate fails to decode somehow but this error is not raised for some reason.
Please answer these questions before submitting your issue. Thanks!
-
What version of Go are you using (go version)?
go 1.7 (playground)
-
What operating system and processor architecture are you using (go env)?
go playground
-
What did you do?
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/I8S80_1P1p
-
What did you expect to see?
success, certificate valid
OR
error why X.509 certificate is corrupt
-
What did you see instead?
Error "x509: certificate is valid for , not domain-match.badtls.io"
The error message is bad with this likely corrupt X.509 certificate:
https://play.golang.org/p/I8S80_1P1p
I think the certificate fails to decode somehow but this error is not raised for some reason.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version)?go 1.7 (playground)
What operating system and processor architecture are you using (
go env)?go playground
What did you do?
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/I8S80_1P1p
What did you expect to see?
success, certificate valid
OR
error why X.509 certificate is corrupt
What did you see instead?
Error "x509: certificate is valid for , not domain-match.badtls.io"