Hi,
I am using FRDM K64F and I would like to create raw TCP server with SSL (x509 certificate). I am not able to find example.
I am able to find example ssl_pthread_server in mbedtls yet it is not for K64F as MBEDTLS_NET_C is not define.
Which API should I use to create raw TCP server with SSL?
解決済! 解決策の投稿を見る。
Hi, Darshan_The_Geek
Sorry for the delay!
You can check our example lwip_httpssrv_mbedTLS_freertos on the FRMD-K64 SDK ( please make sure to have the freeRTOS and LWIP middleware to find the example ). In the example, the mbedTLS API is used to add SSL to the server.
Search for the define
HTTPSRV_CFG_MBEDTLS_ENABLE
All the functions under the define are related to TLS.
Additionally, please notice that the LWIP API is used to init the TCP server in the example
More information related can be found at Mbed_TLS_tutorial. Mbed provides examples
Such as dtls_client.c and dtls_server.c to create a SSL socket.
Please, let me know if this information was helpful.
Best Regards, Diego
Hi, Darshan_The_Geek
Sorry for the delay!
You can check our example lwip_httpssrv_mbedTLS_freertos on the FRMD-K64 SDK ( please make sure to have the freeRTOS and LWIP middleware to find the example ). In the example, the mbedTLS API is used to add SSL to the server.
Search for the define
HTTPSRV_CFG_MBEDTLS_ENABLE
All the functions under the define are related to TLS.
Additionally, please notice that the LWIP API is used to init the TCP server in the example
More information related can be found at Mbed_TLS_tutorial. Mbed provides examples
Such as dtls_client.c and dtls_server.c to create a SSL socket.
Please, let me know if this information was helpful.
Best Regards, Diego