[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:
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
-------------- 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