Project

General

Profile

Actions

Bug #4204

closed

ndnsec: importing a previously exported safebag fails

Added by Luca Keidel over 7 years ago. Updated about 7 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

Also available in: Atom PDF