<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for the fantastic answer Rob. Yes it works for me. With
<b>SSLversion</b>,  you select all protocols and then with <b>options</b>, you selectively disable protocols you don’t wanted. This works like charm, even easy for me to automate the config generation.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Madhava<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> stunnel-users [mailto:stunnel-users-bounces@stunnel.org]
<b>On Behalf Of </b>Rob Lockhart<br>
<b>Sent:</b> Saturday, July 11, 2015 12:58 AM<br>
<b>To:</b> stunnel-users@stunnel.org<br>
<b>Subject:</b> Re: [stunnel-users] help on options and sslversion<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jul 8, 2015 at 7:56 AM, Madhava Gaikwad (madgaikw) <<a href="mailto:madgaikw@cisco.com" target="_blank">madgaikw@cisco.com</a>> wrote:<br>
><br>
><br>
> I am using stunnel 5.03 version. I want to understand how the config option “sslVersion “ and “options ” works.<br>
> The problem I am trying to solve is: I want to enable say only particular ssl connect methods, for example sslv3 and TLs1.2. I am not able to do it.<br>
><br>
> For me if I do below setting:<br>
><br>
> Options = all<br>
> Option = NO_SSLv2<br>
> Option = NO_SSLv3<br>
> Option = NO_TLSv1<br>
> Option = NO_TLSv1.1<br>
> Option = NO_TLSv1.2<br>
><br>
> Still I see all methods are being enabled. I removed Option = all, but no effect. What is expected behavior?<br>
><br>
> Also, the sslVersion seems enables either particular sslversion, or else all the versions. So wondering what can be the escape mechanism. Any help will be highly appreciated.<br>
<br>
I cannot comment on such an old version of Stunnel (5.03 - Version 5.03, 2014.08.07 - nearly a year old!! from <a href="https://www.stunnel.org/sdf_ChangeLog.html" target="_blank">https://www.stunnel.org/sdf_ChangeLog.html</a> history). You really should update
 your Stunnel and OpenSSL version, especially if you're using the insecure OpenSSL versions.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I asked a similar question in the past, and Mike said that the above should work for allowing multiple versions. Try this, from
<a href="https://www.stunnel.org/static/stunnel.html" target="_blank">https://www.stunnel.org/static/stunnel.html</a> man page:<o:p></o:p></p>
<div>
<p class="MsoNormal">sslVersion = all<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">options = NO_SSLv2<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">options = NO_TLSv1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">options = NO_TLSv1.1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">That should only allow SSLv3 and TLSv1.2 and disallow the other three above. I did test this (i.e., enabling the ones "turned off" in the client) and it does indeed work. See what Mike said at the following URL:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.stunnel.org/pipermail/stunnel-users/2015-March/004985.html">http://www.stunnel.org/pipermail/stunnel-users/2015-March/004985.html</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Be sure that you're looking in the right place... there's "enabled by software" and then "enabled by configuration"... the config can limit the software.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">NOTE: The old posts can be searched here:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.stunnel.org/pipermail/stunnel-users/">http://www.stunnel.org/pipermail/stunnel-users/</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> -Rob<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>