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

 

 

 

 

From: stunnel-users <stunnel-users-bounces@stunnel.org> On Behalf Of Paul Coshott
Sent: Friday, 14 February 2020 4:33 AM
To: stunnel-users@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