[Ndn-interest] How to verify an interest packet
Matteo Bertolino
Matteo.Bertolino at eurecom.fr
Fri Oct 7 06:30:27 PDT 2016
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
More information about the Ndn-interest
mailing list