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

zephyr: Recommended way to run a HTTPS server

We are using Zephyr RTOS running on a nRF9160 MCU. One requirement of our project is to run a local HTTPS webserver on the target. Our investigation showed that the recommended webserver for Zephyr is civetweb. However civetweb under Zephyr does not support HTTPS: https://github.com/zephyrproject-rtos/zephyr/issues/34438

What is Nordics recommended way to run a HTTPS-Server on Zephyr?

Best regards,

Michael

Parents
  • Hi,

     

    What is Nordics recommended way to run a HTTPS-Server on Zephyr?

     We don't have any, as far as I know.

    A big reason for this is that cellular devices usually are behind both a NAT layer and a firewall, which makes it hard to send an IP packet to the device without the device initiating the communication.

    Then, if this problem is overcome somehow, you would have to deal with the power consumption which comes with having to listen for incoming connections all the time.

    However, if you have a way to solve these two challenges, it should be possible to run a HTTPS server on the nRF9160.

    On the most basic level, you can open a TLS socket, and handle everything yourself. If your needs are simple, this might not be too much work.

    If you can find HTTP(S) servers where you provide the socket, those should also work.

    Best regards,

    Didrik

Reply
  • Hi,

     

    What is Nordics recommended way to run a HTTPS-Server on Zephyr?

     We don't have any, as far as I know.

    A big reason for this is that cellular devices usually are behind both a NAT layer and a firewall, which makes it hard to send an IP packet to the device without the device initiating the communication.

    Then, if this problem is overcome somehow, you would have to deal with the power consumption which comes with having to listen for incoming connections all the time.

    However, if you have a way to solve these two challenges, it should be possible to run a HTTPS server on the nRF9160.

    On the most basic level, you can open a TLS socket, and handle everything yourself. If your needs are simple, this might not be too much work.

    If you can find HTTP(S) servers where you provide the socket, those should also work.

    Best regards,

    Didrik

Children
No Data
Related