We have a linux device running on an ARM architecture. This is a surveillance device which has multiple IP camera’s connected to it. Using the thttpd as a web sever we can view live video from all these camera’s using http (on any web browser) on port 80. Now we are planning to support to https as well. Since thttpd doesnt support https we thought we could do that with the help of Stunnel. Now the questions I have it..

Q1) Is it sufficient to have an stunnel client running on the device with the a similar stunnel.conf setting..

[https]
accept = 443
connect = 127.0.0.1:80
TIMEOUTclose = 0

Q2) Do we need an other stunnel server running on the device to accept the response from port 80 and send it back to the web client from the port 443 of the device.