Project

General

Profile

Actions

Bug #4204

closed

ndnsec: importing a previously exported safebag fails

Added by Luca Keidel over 6 years ago. Updated over 6 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 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Luca Keidel over 6 years ago

  • Status changed from New to Code review
Actions #2

Updated by Junxiao Shi over 6 years ago

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

Updated by Junxiao Shi over 6 years ago

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

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

Updated by Davide Pesavento over 6 years ago

  • Status changed from Code review to Closed
Actions #6

Updated by Alex Afanasyev over 6 years ago

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

Actions

Also available in: Atom PDF