Closed
Description
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:
...
File ca = SPIFFS.open("/ca.der", "r");
if (!ca) {
Serial.println("Failed to open CA file");
}
else {
Serial.println("Success to open CA file");
if(espClient.loadCACert(ca))
Serial.println("CA loaded");
else
Serial.println("CA not loaded");
}
...
The error I get shows as:
/Users/Arduino/Documents/Arduino/_20170913b/_20170913b.ino: In function 'void setup_certs()':
_20170913b:156: error: no matching function for call to 'WiFiClientSecure::loadCACert(fs::File&)'
if(espClient.loadCACert(ca))
Can it be that the file Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h is missing a
template<typename TFile>
bool loadCACert(TFile& file) {
return loadCACert(file, file.size());
}
or am I to naive here !?
BTW, I am using the Arduino IDE 1.8.1 on Mac
Can someone help ?
Thanks
Rudi
Metadata
Metadata
Assignees
Labels
No labels