<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p.msonormal0, li.msonormal0, div.msonormal0
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif}
span.EmailStyle18
{font-family:"Calibri",sans-serif;
color:windowtext}
span.EmailStyle19
{font-family:"Calibri",sans-serif;
color:windowtext}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<p dir="auto">Problem solved, was not related to SNI, SNI works great with client side stunnel, no need to set the protocol option.</p>
<p dir="auto">Our problem was that http host, since our clients app was using stunnel to reach a virtual host on an nginx to reverse proxy, we connected to stunnel using stunnel local IP instead of our server domain name. Nginx was not receiving the domain
name and was serving the default host.</p>
<p dir="auto">Solution was to add a record to the host file to point the server name to our local stunnel IP.<br>
<br>
</p>
<p dir="auto">Vincent Deschenes Ing. PMP<br>
Director of Operations<br>
Stelvio Inc.<br>
(+1) 514-281-8570<br>
</p>
<br>
<br>
<br>
<div class="gmail_quote">On Mon, Aug 1, 2016 at 1:19 PM -0400, "Vincent Deschenes"
<span dir="ltr"><<a href="mailto:vdeschenes@stelvio.com" target="_blank">vdeschenes@stelvio.com</a>></span> wrote:<br>
<br>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-CA">Do we have to specify the “protocol” option to have stunnel know how to handle the server name indication?</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">I remember I had to set it to smtp for an smtp connection.</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">This current case is for https.</span></p>
<p class="MsoNormal"><span lang="EN-CA">I can not find the http/s option for protocol, should I use the “connect” option?</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">Thanks,</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Vincent Deschenes Ing. PMP</span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Director of Operations</span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Stelvio Inc.</span><span lang="EN-CA" style="font-family:"Courier New""></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">(+1) 514-281-8570</span></p>
</div>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> stunnel-users [mailto:stunnel-users-bounces@stunnel.org]
<b>On Behalf Of </b>Vincent Deschenes<br>
<b>Sent:</b> Monday, August 1, 2016 1:10 PM<br>
<b>To:</b> stunnel-users@stunnel.org<br>
<b>Subject:</b> [stunnel-users] Client-side SNI</p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-CA">Hi,</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">Anyone know if there is anything special to do to get ServerName sent when using stunnel in client mode to be able to connect to SNI enabled server?</span></p>
<p class="MsoNormal"><span lang="EN-CA">Using latest version of stunnel and openssl.</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">Will stunnel use the name specified in the “connect=” config ?</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA">Thanks,</span></p>
<p class="MsoNormal"><span lang="EN-CA">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Vincent Deschenes Ing. PMP</span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Director of Operations</span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">Stelvio Inc.</span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-family:"Courier New"">(+1) 514-281-8570</span></p>
<p class="MsoNormal"><span lang="EN-CA"> </span></p>
</div>
</div>
</body>
</html>