Project

General

Profile

Bug #4204

ndnsec: importing a previously exported safebag fails

Added by Luca Keidel over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Security
Target version:
Start date:
07/24/2017
Due date:
% Done:

100%

Estimated time:

Description

Steps to Reproduce

  1. 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
    
  2. Create a new identity:

    $ ndnsec key-gen /identity
    [base64 encoded identity]
    $ ndnsec list
    /identity
    
  3. Export the identity and delete it afterwards:

    $ ndnsec export /identity > identity.safebag
    $ ndnsec delete /identity
    OK: Delete identity: /identity
    $ ndnsec list
    
  4. 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 ;)


Related issues

Related to ndn-cxx - Task #4124: Add unit tests for security::transform::PublicKey encryption/decryptionClosedZhiyi Zhang

Actions
#1

Updated by Luca Keidel over 3 years ago

  • Status changed from New to Code review
#2

Updated by Junxiao Shi over 3 years ago

  • Category set to Security
  • Target version set to v0.6
#3

Updated by Junxiao Shi over 3 years ago

  • Related to Task #4124: Add unit tests for security::transform::PublicKey encryption/decryption added
#4

Updated by Davide Pesavento over 3 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
#5

Updated by Davide Pesavento over 3 years ago

  • Status changed from Code review to Closed
#6

Updated by Alex Afanasyev over 3 years ago

Just to confirm: the steps are now working properly on my macOS (with and without OSX KeyChain)

Also available in: Atom PDF