[Ndn-interest] using ValidatorConfig

Yingdi Yu yingdi at CS.UCLA.EDU
Sat Jan 30 23:28:31 PST 2016


Hi Jyoti,

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.,

try {
  validator.load(…);
}
catch (const std::runtime_error& e) {
  std::cerr << e.what() << std::endl;
}

The error message may help us to figure out what kind of error is detected. Thanks!

Yingdi




> On Jan 30, 2016, at 7:47 AM, Junxiao Shi <shijunxiao at email.arizona.edu> wrote:
> 
> Hi Jyoti
>  
> Your certificate file and Unix permissions appear to be valid.
>  
> Can Yingdi have a look at this case?
>  
> Yours, Junxiao
> 
> From: Jyoti Parwatikar <mailto:jp at wustl.edu>
> Sent: Monday, January 25, 2016 09:46
> To: Junxiao Shi <mailto:shijunxiao at email.arizona.edu>
> Cc: ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>
> Subject: Re: [Ndn-interest] using ValidatorConfig
>  
> Hi Junxiao,
> 
> I just got back to working on this.
> 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&) 
> 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.
> 
> The process is run as me. And the certificate file has permission 644. 
> First line of certificate file: Bv0C1QczCAV3dXN0bAgDS0VZCBFkc2stMTQ1Mjg3Mjk2ODQ2OAgHSUQtQ0VSVAgJ
> 
> My configuration file:
> rule
> {
>    id "h1x1 data rule"
>    for data
>    filter
>    {
>       type name
>       name /wustl/CHRONOLOG
>       relation is-prefix-of
>    }
>    checker
>    {
>       type fixed-signer
>       sig-type rsa-sha256
>       signer
>       {
>          type file
>          file-name "/users/jp/ndn/JPChronolog/cfg-files/wustl.cert"
>       }
>    }
> }
> 
> -Jyoti
> 
> 
> On 01/15/2016 12:20 PM, Junxiao Shi wrote:
> Hi Jyoti
>  
> If giving the full path still doesn’t work, reply-all with the following:
> the complete ValidatorConfig configuration
> the code snippet that loads the configuration; in particular, is it loaded from a file or from a string
> the full path of your certificate file
> the first line of your certificate file (this helps determining whether you have the correct format in the certificate file)
> what is the current working directory
> what is the effective uid of the running program, and what Unix permissions does this uid have on the certificate file
>  
> Yours, Junxiao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20160130/973b44bc/attachment.html>


More information about the Ndn-interest mailing list