-
Notifications
You must be signed in to change notification settings - Fork 571
Closed
Labels
Description
Im using this function to connect to my server: webSocket.beginSSL("websocket.example.com", 443, "/led");
, and I had the same error as described in #428.
It only worked after I added this else { _client.ssl->setInsecure(); }
to line 176.
arduinoWebSockets/src/WebSocketsClient.cpp
Lines 167 to 176 in c038f10
if(_CA_cert) { | |
DEBUG_WEBSOCKETS("[WS-Client] setting CA certificate"); | |
#if defined(ESP32) | |
_client.ssl->setCACert(_CA_cert); | |
#elif defined(ESP8266) | |
_client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1); | |
#else | |
#error setCACert not implemented | |
#endif | |
} |
Am I using the wrong method to connect or is this a bug?
sebastien-savalle, sivar2311 and ahmad7091