[Ndn-interest] using ValidatorConfig

Alex Afanasyev aa at CS.UCLA.EDU
Tue Feb 2 11:50:14 PST 2016


> On Feb 1, 2016, at 8:43 AM, Jyoti Parwatikar <jp at wustl.edu> wrote:
> 
> Yingdi,
> 
> This is the error message.
> 
> Cannot read certificate from file: /users/jp/ndn/JPChronolog/cfg-files/wustl.cert

Can you also check that the directory permissions are right (= read and execute is for user, group, and others)?

> 
> -Jyoti
> 
> On 01/31/2016 01:28 AM, Yingdi Yu wrote:
>> 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 <mailto: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
>> 
> 
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20160202/570e3b86/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20160202/570e3b86/attachment.bin>


More information about the Ndn-interest mailing list