Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto/x509: bad error message #16834

Closed
joneskoo opened this issue Aug 22, 2016 · 1 comment
Closed

crypto/x509: bad error message #16834

joneskoo opened this issue Aug 22, 2016 · 1 comment
Milestone

Comments

@joneskoo
Copy link
Contributor

joneskoo commented Aug 22, 2016

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!

  1. What version of Go are you using (go version)?

    go 1.7 (playground)

  2. What operating system and processor architecture are you using (go env)?

    go playground

  3. 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

  4. What did you expect to see?

    success, certificate valid

    OR

    error why X.509 certificate is corrupt

  5. What did you see instead?

    Error "x509: certificate is valid for , not domain-match.badtls.io"

@gopherbot
Copy link

CL https://golang.org/cl/30152 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 2, 2017
@rsc rsc unassigned agl Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants