<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
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: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.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Verdana","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Verdana","sans-serif";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Verdana","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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>Hi,<br><br>I got VeriSign Test SSL certificate. I have been trying to configure it with STunnel. But there are errors in STunnel. I have placed private key and CA signed certificate in a separate file named ‘stunnel.pem’. Root and Intermediate certificates have been placed in following order in a file named ‘ca.pem’<br><br>stunnel.pem<br><br>-----BEGIN RSA PRIVATE KEY-----<br>encrypted key<br>-----END RSA PRIVATE KEY-----<br><br>-----BEGIN CERTIFICATE-----<br>VeriSign signed certificate<br>-----END CERTIFICATE-----<br><br>ca.pem<br>-----BEGIN CERTIFICATE-----<br>VeriSign Intermediate CA Certificate<br>-----END CERTIFICATE-----<br><br>-----BEGIN CERTIFICATE-----<br>VeriSign Root CA Certificate<br>-----END CERTIFICATE-----<br><br>Here is stunnel.conf file. <br><br>;key = server.key<br>cert = stunnel.pem<br><br>; Some performance tunings<br>socket = l:TCP_NODELAY=1<br>socket = r:TCP_NODELAY=1<br><br>; Workaround for Eudora bug<br>;options = DONT_INSERT_EMPTY_FRAGMENTS<br><br>; Authentication stuff<br>verify = 2<br>; Don't forget to c_rehash CApath<br>;CApath = certs<br>; It's often easier to use CAfile<br>CAfile = ca.pem<br>;CAfile=zosIntermediate.pem<br>; Don't forget to c_rehash CRLpath<br>;CRLpath = crls<br>; Alternatively you can use CRLfile<br>;CRLfile = crls.pem<br><br>; Some debugging stuff useful for troubleshooting<br>;debug = 7<br>output = stunnel.log<br><br>; Use it for client mode<br>client = no<br><br>I have also tried to change order of certificates but nothing is working. Anyone have idea how it can work. Your cooperation will be highly appreciated. <br><br>Thanks,<br><br>Zubair<span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p></div></body></html>