-
Notifications
You must be signed in to change notification settings - Fork 13.3k
wificlientsecure failed to verify letsencrypt ca cert #5084
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
Comments
In this case your root CA is "DST Root CA X3" (see the last section of output) and you need to load that into WiFiClientSecure. If you pass it an intermediate certificate (such as Let's Encrypt Authority in this case) it will not recognize it as the root one. |
thanks a lot. certificate is verified now |
hi @igrr thanks for help, but now i have problem with sending post data with wificlientsecure.
Im getting response that amount is missing. |
If you aren't very familiar with HTTP protocol, my advice would be to use ESP8266HTTPClient library, at least initially. |
Yes, it is body and as you can see i have EDIT I have working app for esp32 and esp8266 with fingerprint but its letsencrypt issued cert so i need to use ca cert. |
@chegewara you ignored the issue template, so it's difficult to follow what you're doing. Given @igrr 's answer, I won't close this for now. |
@devyte I appreciate any help and im not a paracite, i am trying to help other programmers too when i can. |
Why is For testing, if you don't have access to server logs, you can use
Right, i understand. Once #4979 is merged, it will be easier to use different certificate verification options with HTTPClient. |
I am using this example. I changed ca cert to letsencrypt certificate https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt converted with https://certyfikatyssl.pl/ssl-tools/convert-certificate.html#certificateConverter to der and then to hex with
xxd -i -a
command. Here is log:Certificate seems to be recognized and all seems to be properly setup, but cant pass with
verifyCertChain
and without verification connection is failed.The text was updated successfully, but these errors were encountered: