Skip to content

SSL without CA or fingerprint not working #492

@qnten

Description

@qnten

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.

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions