ESP32 WSS - Secure Web Sockets
Posted: Sat Jun 06, 2020 11:53 pm
Arduino web sockets supports WSS on ESP32 (https://github.com/gilmaimon/ArduinoWebsockets) but how do you use WSS with AsyncWebSocket?
There seems to be support here:
https://docs.espressif.com/projects/esp ... lient.html
[Codebox]SSL
Get certificate from server, example: websocket.org openssl s_client -showcerts -connect websocket.org:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >websocket_org.pem
Configuration:
const esp_websocket_client_config_t ws_cfg = {
.uri = "wss://websocket.org",
.cert_pem = (const char *)websocket_org_pem_start,
};[/Codebox]
But how does this apply to the Arduino library?
There seems to be support here:
https://docs.espressif.com/projects/esp ... lient.html
[Codebox]SSL
Get certificate from server, example: websocket.org openssl s_client -showcerts -connect websocket.org:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >websocket_org.pem
Configuration:
const esp_websocket_client_config_t ws_cfg = {
.uri = "wss://websocket.org",
.cert_pem = (const char *)websocket_org_pem_start,
};[/Codebox]
But how does this apply to the Arduino library?