[stunnel-users] How to use SNI

Vincent Deschenes vdeschenes at stelvio.com
Mon Feb 17 19:12:09 CET 2020


This looks more like a job for a reverse proxy such as Nginx than stunnel.




From: stunnel-users <stunnel-users-bounces at stunnel.org> On Behalf Of Paul Coshott
Sent: Friday, 14 February 2020 4:33 AM
To: stunnel-users at stunnel.org
Subject: [stunnel-users] How to use SNI

Hi Everyone,

I have a single domain on my internet server, but it has 3 sub-domains. A separate web app runs off each one, but I need all 3 to be secured with https.
I have the ssl certificates I need, but I don't know how to format the SNI section for all 3 sub-domains.

The 3 domains and ports I need are :

app1.pcapps.one:449  ->  127.0.0.1:8080
app2.pcapps.one:450  ->  127.0.0.1:81
app3.pcapps.one:451  ->  127.0.0.1:82

each domain has a certificate such as :

cert = C:\httpscert\app1.pcapps.one.pfx


Can anyone tell me how to write out the SNI section to get this working?

Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20200217/2d42beae/attachment.htm>


More information about the stunnel-users mailing list