Hello,
I've got the crazy idea to run stunnel behind an existing, SSL-enabled, basic-auth-using httpd. Configuration would be as follows:
1. put some stunnel.cgi into /usr/www/cgi-bin which would call stunnel binary
2. start stunnel client with -r https://login:passwd@myhost.org/cgi-bin/stunnel.cgi
Advantages (assumed you're behind a proxy which allows only 443 as outgoing port):
a. You can still access other WebIFs on that server. b. You don't have to administer another web server including authentication, certificates and so on.
May be stunnel is not the best tool for the above scenario (I reckon stunnel is currently unable to fulfill this)... I hope someone can shed some light on this.
Cheers, Chatty.