<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Jyoti,<div class=""><br class=""></div><div class="">Could you also share the error msg? You can get that be catch std::runtime_error around load() method, and the print out e.what(), e.g.,</div><div class=""><br class=""></div><div class="">try {</div><div class="">  validator.load(…);</div><div class="">}</div><div class="">catch (const std::runtime_error& e) {</div><div class="">  std::cerr << e.what() << std::endl;</div><div class="">}</div><div class=""><br class=""></div><div class="">The error message may help us to figure out what kind of error is detected. Thanks!</div><div class=""><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class="">Yingdi</div><div class=""><br class=""></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 30, 2016, at 7:47 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><meta name="Generator" content="Microsoft Word 15 (filtered medium)" class=""><style class=""><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        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:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* 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:#954F72;
        text-decoration:underline;}
.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;}
/* List Definitions */
@list l0
        {mso-list-id:1044865942;
        mso-list-template-ids:-1;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><div lang="EN-US" link="blue" vlink="#954F72" class=""><div class="WordSection1"><p class="MsoNormal">Hi Jyoti<o:p class=""></o:p></p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Your certificate file and Unix permissions appear to be valid.</p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Can Yingdi have a look at this case?</p><p class="MsoNormal"><o:p class=""> </o:p></p><p class="MsoNormal">Yours, Junxiao</p><div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in" class=""><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;border:none;padding:0in"><br class=""><b class="">From: </b><a href="mailto:jp@wustl.edu" class="">Jyoti Parwatikar</a><br class=""><b class="">Sent: </b>Monday, January 25, 2016 09:46<br class=""><b class="">To: </b><a href="mailto:shijunxiao@email.arizona.edu" class="">Junxiao Shi</a><br class=""><b class="">Cc: </b><a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a><br class=""><b class="">Subject: </b>Re: [Ndn-interest] using ValidatorConfig</p></div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class=""> </span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">Hi Junxiao,<br class=""><br class="">I just got back to working on this.<br class="">I suspect my certificate is probably incorrect. When I step through the code, it is failing to create the IdentityCertificate from the file in  ndn::security::conf::CheckerFactory::getSigner(const ConfigSection&, const string&) <br class="">I can see it read in from the configuration file and it's reading the other parameters fine. It's failing when it hits the creation of the signer in the checker.<br class=""><br class="">The process is run as me. And the certificate file has permission 644. <br class="">First line of certificate file: Bv0C1QczCAV3dXN0bAgDS0VZCBFkc2stMTQ1Mjg3Mjk2ODQ2OAgHSUQtQ0VSVAgJ<br class=""><br class="">My configuration file:<br class="">rule<br class="">{<br class="">   id "h1x1 data rule"<br class="">   for data<br class="">   filter<br class="">   {<br class="">      type name<br class="">      name /wustl/CHRONOLOG<br class="">      relation is-prefix-of<br class="">   }<br class="">   checker<br class="">   {<br class="">      type fixed-signer<br class="">      sig-type rsa-sha256<br class="">      signer<br class="">      {<br class="">         type file<br class="">         file-name "/users/jp/ndn/JPChronolog/cfg-files/wustl.cert"<br class="">      }<br class="">   }<br class="">}<br class=""><br class="">-Jyoti<br class=""><br class=""></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class=""><o:p class=""></o:p></span></p><div class=""><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">On 01/15/2016 12:20 PM, Junxiao Shi wrote:<o:p class=""></o:p></span></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" class=""><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">Hi Jyoti <o:p class=""></o:p></span></p><div class=""><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class=""> </span></p></div><div class=""><div class=""><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">If giving the full path still doesn’t work, reply-all with the following:<o:p class=""></o:p></span></p></div><div class=""><ul type="disc" class=""><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">the complete ValidatorConfig configuration<o:p class=""></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">the code snippet that loads the configuration; in particular, is it loaded from a file or from a string<o:p class=""></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">the full path of your certificate file<o:p class=""></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">the first line of your certificate file (this helps determining whether you have the correct format in the certificate file)<o:p class=""></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">what is the current working directory<o:p class=""></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">what is the effective uid of the running program, and what Unix permissions does this uid have on the certificate file<o:p class=""></o:p></span></li></ul></div><div class=""><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class=""> </span></p></div><div class=""><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif" class="">Yours, Junxiao<o:p class=""></o:p></span></p></div></div></blockquote></div></div></div></blockquote></div><br class=""></div></body></html>