ESP32-C3 Client Socket TLS Mutual Example

daniweb
Posts: 6
Joined: Fri Feb 16, 2024 9:12 am

ESP32-C3 Client Socket TLS Mutual Example

Postby daniweb » Wed Mar 13, 2024 8:58 am

Hi,
I'm not able to create a client connection to a server that requires mutual TLS using the port 4242.

I have the:
- remote_server_public_cert.pem
- local_public_cert.pem
- local_private_key.pem

I tried multiple approaches starting from different examples:
- https_request
- https_mbedtls
- ....
but I could not manage.

Can someone share an example where this is possible?
If not which example shall I use as base and what is the key change do I have to apply?

PS1: maybe for a first step maybe better to skip the validity check to exclude issues with the time.
PS2: The keys and server side are working with another implementation I have using an NB-IoT module offering tls sockets via AT commands.
Now I would like to implement it using the pppos without dedicated AT commands.

Thanks a lot.

daniweb
Posts: 6
Joined: Fri Feb 16, 2024 9:12 am

Re: ESP32-C3 Client Socket TLS Mutual Example

Postby daniweb » Fri Mar 15, 2024 7:18 am

I found one there that works for me.

https://github.com/Mbed-TLS/mbedtls/blo ... _client2.c

Who is online

Users browsing this forum: No registered users and 159 guests