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

joneskoo opened this issue Aug 22, 2016 · 1 comment

crypto/x509: bad error message #16834

joneskoo opened this issue Aug 22, 2016 · 1 comment


Copy link

@joneskoo joneskoo commented Aug 22, 2016

The error message is bad with this likely corrupt X.509 certificate:

panic: failed to verify certificate: x509: certificate is valid for , not

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 is best.

  4. What did you expect to see?

    success, certificate valid


    error why X.509 certificate is corrupt

  5. What did you see instead?

    Error "x509: certificate is valid for , not"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.