This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 DK to support https protocol

Hi,

I started working with nRF9160 and took AT_Client and added support for my own commands. Additional to that I added HTTP example to it and they are working great together but I need one more thing, I need to add ssl/tls support for http.

I only saw that there are example of mqtt secure socket but I didn't find any documentations about it , Is there a way to add ssl/tls to support https ?

Basically I need to send string to server with https and get response ... ( I prefer that the certificate will got from server instead of hard coded )

Do you have suggestions how to do it best? 

Thanks,

David

Parents
  • HI,

    I tried to add mbedTLS to my project and I got compilation error ( without trying to activate it ). I talked to Zephyr and they told me that Segger Embedded Studio (SES) has integration problem with CFG_FILE. Do you know about it ? and how to fix it ?

    When I added this configurations the problem started

    CONFIG_MBEDTLS=y
    CONFIG_MBEDTLS_BUILTIN=y
    CONFIG_MBEDTLS_ENABLE_HEAP=y
    CONFIG_MBEDTLS_HEAP_SIZE=60000
    CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_NET_BUF_RX_COUNT=100
    CONFIG_NET_BUF_TX_COUNT=100
    CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
    CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=4
    CONFIG_NET_SOCKETS_ENABLE_DTLS=y

    Thanks,

    David

Reply
  • HI,

    I tried to add mbedTLS to my project and I got compilation error ( without trying to activate it ). I talked to Zephyr and they told me that Segger Embedded Studio (SES) has integration problem with CFG_FILE. Do you know about it ? and how to fix it ?

    When I added this configurations the problem started

    CONFIG_MBEDTLS=y
    CONFIG_MBEDTLS_BUILTIN=y
    CONFIG_MBEDTLS_ENABLE_HEAP=y
    CONFIG_MBEDTLS_HEAP_SIZE=60000
    CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_NET_BUF_RX_COUNT=100
    CONFIG_NET_BUF_TX_COUNT=100
    CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
    CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=4
    CONFIG_NET_SOCKETS_ENABLE_DTLS=y

    Thanks,

    David

Children
No Data
Related