SSL TCP Server with FRDM-K64F

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SSL TCP Server with FRDM-K64F

Jump to solution
1,089 Views
darshan_shah1
Contributor II

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?

0 Kudos
Reply
1 Solution
1,005 Views
diego_charles
NXP TechSupport
NXP TechSupport

 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

View solution in original post

0 Kudos
Reply
1 Reply
1,006 Views
diego_charles
NXP TechSupport
NXP TechSupport

 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

0 Kudos
Reply