<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=gb2312">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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="color:#1F497D">Sorry, one correction: the line I added to the eg2_impl.cc was :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i><span style="background:yellow;mso-highlight:yellow">//I added this line<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i><span style="background:yellow;mso-highlight:yellow">&nbsp; sslContext::certificate_authority_path = &quot;/home/foo/trustedca”;</span><o:p></o:p></i></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">it doesn’t work.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:9.0pt;line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#031432">Best Regards,<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:9.0pt;line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#031432">Bill Chen</span></b><span style="color:#1F497D"><o:p></o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Bill Chen
<br>
<b>Sent:</b> 2015</span><span lang="ZH-CN" style="font-size:10.0pt;font-family:宋体">年</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">12</span><span lang="ZH-CN" style="font-size:10.0pt;font-family:宋体">月</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">4</span><span lang="ZH-CN" style="font-size:10.0pt;font-family:宋体">日</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 22:50<br>
<b>To:</b> 'omniorb-list@omniorb-support.com'<br>
<b>Subject:</b> V4.2.1, SSL CA Path issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hello everyone,<o:p></o:p></p>
<p class="MsoNormal">&nbsp; omniORB V4.2.1 introduces a very important feature for SSL: a new attribute named
<i>certificate_authority_path</i> in sslContext.h. It’s designed to put all trusted certificates in the folder.<o:p></o:p></p>
<p class="MsoNormal">&nbsp; When I tested this feature, I found the certificates in this folder just didn’t work. What I did was to add a new line in examples/ssl_echo/eg2_impl.cc like the following, and put one certificate (in pem format) to the “/home/foo/trustedca”
 folder:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>//…<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>int main(int argc, char** argv)<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>{<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>&nbsp; sslContext::certificate_authority_file = &quot;root.pem&quot;;<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i><o:p>&nbsp;</o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i><span style="background:yellow;mso-highlight:yellow">//I added this line<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i><span style="background:yellow;mso-highlight:yellow">&nbsp; sslContext::certificate_authority_<span style="color:#1F497D">path</span> = &quot;/home/foo/trustedca”;</span><o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i><o:p>&nbsp;</o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>&nbsp; sslContext::key_file = &quot;server.pem&quot;;<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>&nbsp; sslContext::key_file_password = &quot;password&quot;;<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i>//…<o:p></o:p></i></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp; If I move the certificate to the root.pem file, it works fine.<o:p></o:p></p>
<p class="MsoNormal">&nbsp; Did I do anything wrong? Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:9.0pt;line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#031432">Best Regards,<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:9.0pt;line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#031432">Bill Chen<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>