[Nfd-dev] KeyChain - default identity not defined

Thiago Teixeira tteixeira at engin.umass.edu
Wed Jul 13 10:52:13 PDT 2016


Hi all,

When experimenting with NFD and PyNDN I came across an issue with the KeyChain abstraction, described below:

I am running a script that boots up with the VM and start NFD. The issue is that this script is run by a default user (say user A), so when I start my producer application with my user (say user B), the keyChain method raises an exception:
"SecurityException: BasicIdentityStorage::getDefaultIdentity: The default identity is not defined"

Here's an example with root user and no root user:
$ sudo su
# ndnsec list -c
* /tmp-identity/l%BF%04%02
  +->* /tmp-identity/l%BF%04%02/ksk-1467904567956
       +->* /tmp-identity/l%BF%04%02/KEY/ksk-1467904567956/ID-CERT/%FD%00%00%01U%C5%EE+%90

<switch back to normal user and start_nfd>
$ ndnsec list -c
* /localhost/operator
  +->* /localhost/operator/ksk-1468431423614
       +->* /localhost/operator/KEY/ksk-1468431423614/ID-CERT/%FD%00%00%01U%E5U%5B%2C

Is there any workaround/fix for this issue?

Thanks,
Thiago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160713/6c8e129c/attachment.html>


More information about the Nfd-dev mailing list