If you already have setup nanoweb in inetd mode, you may want
to backup your non-SSL config files as you probably want to host
different virtual hosts for http and https.
Copy the wrapper script /usr/sbin/in.nanoweb to
in.nanoweb-ssl; comment the line for normal operation and
uncomment the ones for SSL (stunnel).
You want these two files for nanoweb to still operate as plain
http server on port 80 but also over SSL via stunnel.
uncomment the https line in your /etc/inetd.conf (this line
was already written to there by the nanoweb install-sh)
Testing
Once all this is done, open your favorite SSL enabled web browser, and try to
open "https://localhost". If it works, you should see the default web page,
and your browser should tell you some things about the cert not being signed
by a trusted authority (this is not a bug, just send your CSR for signing to a
trusted CA if you want).
If it does not, stunnel log files are quite informative :)