using mbedTLS API's in the program

I am trying to implement a TCP server with TLS support. I have the following confusion-

Do we need to use mbedTLS API explicitly or is it internally handled by a zephyr?

If explicitly means, can you point me to an example?

  • If you are looking for a good example I would recommend the https_client sample at /nrf/samples/nrf9160/https_client.  It shows how to create the raw sockets and associate any TLS settings you want with it.

    The modem firmware handles the full TLS and TCP/IP stacks internally.  I have not personally had to make any calls to any mbedTLS primitives to get things working.

Related