Actions
Bug #4204
closedndnsec: importing a previously exported safebag fails
Start date:
07/24/2017
Due date:
% Done:
100%
Estimated time:
Description
Steps to Reproduce
Build the latest ndn-cxx (I am using macOS, so I have to configure to not use the Keychain, otherwise the bug won't occur since the OSX-Keychain module does not use the affected code).
$ ./waf configure --without-osx-keychain $ ./waf $ sudo ./waf install
Create a new identity:
$ ndnsec key-gen /identity [base64 encoded identity] $ ndnsec list /identity
Export the identity and delete it afterwards:
$ ndnsec export /identity > identity.safebag $ ndnsec delete /identity OK: Delete identity: /identity $ ndnsec list
Import the identity:
ndnsec import identity.safebag Passphrase for the private key: Confirm: [1] 65009 segmentation fault ndnsec import identity.safebag
This issue seems to be related to a missing OpenSSL initialization call. If I manage to get it right, i will submit a patch soon ;)
Updated by Junxiao Shi over 7 years ago
- Category set to Security
- Target version set to v0.6
Updated by Junxiao Shi over 7 years ago
- Related to Task #4124: Add unit tests for security::transform::PublicKey encryption/decryption added
Updated by Davide Pesavento about 7 years ago
- Subject changed from ndnsec command line tools: Importing a previously exported safebag fails to ndnsec: importing a previously exported safebag fails
- Assignee set to Luca Keidel
- % Done changed from 0 to 100
Updated by Davide Pesavento about 7 years ago
- Status changed from Code review to Closed
Updated by Alex Afanasyev about 7 years ago
Just to confirm: the steps are now working properly on my macOS (with and without OSX KeyChain)
Actions