<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:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        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:SimSun;
        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.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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">Hello everyone,<o:p></o:p></p>
<p class="MsoNormal"> 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"> 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> </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> sslContext::certificate_authority_file = "root.pem";<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><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"> sslContext::certificate_authority_file = "/home/foo/trustedca”;</span><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> sslContext::key_file = "server.pem";<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:36.0pt"><i> sslContext::key_file_password = "password";<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> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> If I move the certificate to the root.pem file, it works fine.<o:p></o:p></p>
<p class="MsoNormal"> Did I do anything wrong? Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:9.0pt;line-height:115%;font-family:"Arial","sans-serif";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:"Arial","sans-serif";color:#031432">Bill Chen</span></b><b><span style="font-size:9.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#031432"><o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>