SSL TCP Server with FRDM-K64F

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SSL TCP Server with FRDM-K64F

跳至解决方案
1,091 次查看
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 项奖励
回复
1 解答
1,007 次查看
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 项奖励
回复
1 回复
1,008 次查看
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 项奖励
回复