[Ndn-interest] How to verify an interest packet

Matteo Bertolino Matteo.Bertolino at eurecom.fr
Mon Oct 10 06:27:32 PDT 2016


Dear Junxiao,
I took some days in order to update the software at new release, but  
the problem still persists.

Yes, the certificate is properly published. I can retrieve it, and if  
I use it to sign data all is OK. The problem is signing interests only..

The error reason is: Packet cannot pass any checkers.

Any ideas?
Thank you,
Matteo


Quoting Junxiao Shi <shijunxiao at email.arizona.edu>:

> Hi Matteo
>
> What's the error reason passed to onInterestValidationFailed function?
>
> Is the certificate properly published? In other words, can you   
> retrieve the certificate by expressing an Interest using ndnpeel?
>
> Yours, Junxiao
>
> -----Original Message-----
> From: "Matteo Bertolino" <Matteo.Bertolino at eurecom.fr>
> Sent: ?10/?7/?2016 6:31
> To: "ndn-interest at lists.cs.ucla.edu" <ndn-interest at lists.cs.ucla.edu>
> Subject: [Ndn-interest] How to verify an interest packet
>
> Dear community,
> I am having some problem in verifying an interest packet.
> Specifically, the error is: Packet cannot pass any checkers.
>
> A root authority signs the certificate of the sender of the interest
>
> My file config is:
> rule
> {
>    id "p rule"
>    checker
>    {
>      type hierarchical
>      sig-type rsa-sha256
>    }
> }
> trust-anchor
> {
>    type file
>    file-name /tmp/p/root.ndncert
> }
>
> So it is very simple.
> The sender of the interest, signs the interest in this way:
> Name producerId("/root/site2"); ///test/site2/user2
> m_keyChain.signByIdentity(interest, producerId);
>
> While the content producer verifies it so:
> void onInterest(const InterestFilter& filter, const Interest& interest)
> {
> m_validator->validate(interest, bind(&Producer::sendData, this, _1),
>                            bind(&Producer::onInterestValidationFailed,
> this, _1, _2));
>    }
>
> The interest sent has the key included in the name, I noticed:
> /root/site1/%00%00%01W%9F8%C4%11/%5Dl%F4%D2%8F%C5%D1%D6/%165%1B%01%01%1C0%07.%08%04root%08%03KEY%08%05site2%08%11ksk-1475844947720%08%07ID-CERT/%17%FD%01%0
> [...]
>
> Do you notice any error?
> Yours,
> Matteo
>
> -------------------------------------------------------------------------------
> This message was sent using EURECOM Webmail: http://webmail.eurecom.fr
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>



-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr





More information about the Ndn-interest mailing list