-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
loadCACert problem #3609
Comments
Indeed, there is no such function ( |
PR Raised. |
hello. I upload the ca.crt with SPIFFS but the ca not load. I search in this forum a solution but i don't undestand like build the correctly .ino. this is my .ino file and my debug serial . `#include "FS.h" // Update these with values suitable for your network. const char* ssid = "TIM-xxxxxxxx"; void callback(char* topic, byte* payload, unsigned int length) { } void setup_wifi() { delay(10); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { Serial.println(""); void reconnect() { void setup() { File ca = SPIFFS.open("/ca.crt", "r"); //replace ca.crt eith your uploaded file name if(espClient.loadCertificate(ca)) //client.setServer(mqtt_server, 8883); void loop() { if (!client.connected()) { long now = millis(); WiFi connected the mqtt is connected but the ca isn't verify. p.s. sorry for my English! |
Closing since the PR has been merged. |
Hi all,
I installed the github version of the esp8266/Arduino package (so NOT using package/boards manager, but installing using the git clone method).
Now I have an issue using loadCACert.
I can use loadCertificate and loadPrivateKey without problems, but I get a compile time issue on loadCACert. see this snippet:
The error I get shows as:
Can it be that the file Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h is missing a
or am I to naive here !?
BTW, I am using the Arduino IDE 1.8.1 on Mac
Can someone help ?
Thanks
Rudi
The text was updated successfully, but these errors were encountered: