[Ndn-interest] How to verify an interest packet

Junxiao Shi shijunxiao at email.arizona.edu
Sat Oct 8 00:28:27 PDT 2016

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:
   id "p rule"
     type hierarchical
     sig-type rsa-sha256
   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),
this, _1, _2));

The interest sent has the key included in the name, I noticed:

Do you notice any error?

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

Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20161008/e6e15664/attachment.html>

More information about the Ndn-interest mailing list