<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=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@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><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I have two questions, which I think may be related, regarding how to use the information from stunnel log.  I use stunnel to connect to an SMTP server on the internet from my home network, and in particular from my Windows laptop. My stunnel version is this:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>stunnel 4.50 on x86-pc-mingw32-gnu platform<o:p></o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Compiled/running with OpenSSL 0.9.8r-fips 8 Feb 2011<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>It works well for my purposes, and I can see, by using a program for monitoring process and network connections, that the connections are now secured as expected. However, I believe it can be made more secure if I can utilize the certificate that is offered by the server, but I am not sure how to make that happen.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>In my stunnel log for the connection, I get this message:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Client-mode smtp protocol negotiations started<o:p></o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Client-mode smtp protocol negotiations succeeded<o:p></o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>No peer certificate received<o:p></o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>SSL connected: new session negotiated<o:p></o:p></span></font></p><p class=MsoNormal style='text-indent:.5in'><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Negotiated ciphers: ADH-AES256-SHA SSLv3 Kx=DH Au=None Enc=AES(256) Mac=SHA1<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>My first question is, how should I go about getting that “No peer certificate received” issue corrected and how do I install it?  Secondly, when I issue this command at the cmd shell prompt:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><pre><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>               </span></font>openssl s_client -starttls smtp -connect host.server:port<o:p></o:p></pre><pre><font size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The output is lengthy and it includes, among other things, clearly what is identified as a certificate.  I have been told that this is a good certificate, and one that I should utilize for an authenticated connection.  So, my question is, is this the same certificate that I saw referenced in the log as the “peer certificate”, and how do I go about putting this certificate where it belongs in my directory? I know how to copy it and save it as a file, but where do I put it and should it have a special name?  <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>If someone wants to direct me to the correct instruction for doing this, that would be fine too.  I am just looking for some pointers for assistance.  Thanks.<o:p></o:p></span></font></p></div></body></html>