Page 1 of 1

Websocket with client authentication (mutual SSL)

Posted: Thu Jun 18, 2020 5:18 pm
by AloyseTech
Hi,

I'm trying to setup a websocket (wss) client with mutual SSL authentication.

Currently (ESP-IDF 4.0.1) the websocket API seems to only offer server authentication (by providing the trusted certificate). Is there any way to add client authentication (i.e. provide client cert and key to the server) ?

Best regards

Re: Websocket with client authentication (mutual SSL)

Posted: Mon Nov 02, 2020 6:55 am
by Wootsies
Hi there,

Were you able to find a way to get websockets working with client authentication using the ESP websocket client?

Even in ESP-IDF 4.1 the struct esp_websocket_client_config_t does not have a way to configure the client certificate and key for verification by the server.

Best regards