-
Notifications
You must be signed in to change notification settings - Fork 48
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
Why is this verification failing? #12
Comments
Is this related to #1? How can I find out whether my setup is incorrect or whether this library has not implemented the letsencrypt chain? |
I feel bad about bumping this issue again as I am sure you are working on important things. It would be really helpful if you could give me a quick pointer if it's me who is doing something wrong or if it's a missing feature/implementation of this library (and if so, how I might put together a PR fixing it). With letsencrypt getting more and more traction, this might also help other developers. |
Hey @indutny I hope you don't mind me asking - but is this project still maintained? |
@alubbe I try to, but sometimes I don't have enough time. If you know anyone who will be interested in this, please let me know! |
@indutny Like I mentioned above, it seems to fail ocsp validation for every letsencrypt certificate, which, as you know, has several million certificates deployed. So I think there'll be interest in fixing it ;) |
I believe that it comes down to this https://community.letsencrypt.org/t/unable-to-verify-ocsp-response/7264/6 . Perhaps non-issuer cert is used to verify the OCSP response. Going to check this. |
On other hand |
OpenSSL appears to be completely fine about it. |
I suppose there may be a problem with DER encoding somewhere. |
Yes, openssl being fine with it was the reason I initially opened this issue. Wouldn't that mean that there is a problem decoding the DER in this module rather than the encondig of it? |
I believe encoding, will let you know about my findings soon. |
(FWIW, I can fix it manually, but try to understand why encoding produces different result) |
Alright, I believe there is a problem with DER encoding in OpenSSL: This is a description of OCSP ResponseData that is being verified:
Where
This is how
This is how OpenSSL does this:
To conclude OpenSSL encodes
I'm going to investigate it a bit more, but this is how things look like at the moment. |
Yeah, it is definitely prohibited by X.690:
See: https://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf |
See: openssl/openssl#1297 |
Turns out this is a golang bug: https://go-review.googlesource.com/#/c/24841/ |
@alubbe I have managed to fix it anyway, please give it a try. Hope it works for you now! |
Can confirm that it works now. |
Indeed it did! Thank you for reporting this! |
Thanks for putting this module together!
I cannot figure out why validation is failing for my host www.muuuf.de. Specifically, this is failing
even though this
produces output that looks valid and verified to me:
The text was updated successfully, but these errors were encountered: