-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Using files (SPIFFS) to setCertificate. #3248
Comments
Hey @JoaquimFlavio have you been able to resolve your issue? I'm receiving the same error |
@ferologics I don't resolving this complete problem. The
|
I also have the same problem :( If i connect to the same server using the same certificate but HTTPS rather than MQTTS it works ! Im reading the certificate from SPIFFS and loading using wifiClient.loadCACert(ca, ca.size()) Any clues?? |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
I also have this problem, specifically when trying to connect to AWS IoT with cacert, cert and private key. |
Found the problem! Fix is edit C:\Users<...>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure\src\WiFiClientSecure.cpp and modify
@me-no-dev please re-open and mark as a bug. |
Please submit as a PR. Bugs don't fix themselves around here. |
Thank you, @pulquero! This fixed my issue with trying to connect to MQTT using PubSubClient and cert verification. |
Co-authored-by: Mark Hale <[email protected]>
@pulquero , well i am still getting the same error even after the said code change. I am using esp32s2 code branch. Am i missing something?
|
Same on here, how can i load spiffs ca.cert.pem to pass to setCACert method:
|
I use something like this to load the certificates:
|
I need get file in the flash of ESP32 to set certificate for connect to my Broker MQTT, but the code return me a connecte error. I search in the network for sollution but don`t found...
I try using
loadCertificate
andsetCertificate
but both return the ssl error in the monitor:The text was updated successfully, but these errors were encountered: