Endpoint Encryption

 View Only
  • 1.  x509-cert --export-format exports an empty file

    Posted Sep 03, 2014 03:44 AM

    Hi Guys,

    Apparently, I am able to create a key-pair for PGP command line and we are using 9.5.2

    ==============================================

    PGP Command Line 9.5.2 build 654
    Copyright (C) 2005 PGP Corporation
    All rights reserved.

    ==============================================

    ==============================================

    /opt/pgp/bin# ./pgp --list-keys
    Warning: PGPsdk running in local mode.
     Alg  Type Size/Type Flags   Key ID     User ID
    ----- ---- --------- ------- ---------- -------
    RSA4 pair 4096/4096 [VI---] 0xE552113D test user

    =================================================

    I am able to successfully export the correct format using the command below:

    =================================================

    ./pgp --export "test user" --export-format x509-cert --cert 0xE552113D -o "nelson.crt"
    Warning: PGPsdk running in local mode.
    0xE552113D:export key (0:key exported to nelson.crt)

    ================================================

     

    However, the file is EMPTY:

    ===================================================

    %:/opt/pgp/bin# ls -lrtd nelson.crt
    -rw-------    1 root     system           54 Sep 03 15:41 nelson.crt
    %:/opt/pgp/bin# ls -lrt nelson.crt
    -rw-------    1 root     system           54 Sep 03 15:41 nelson.crt
    %:/opt/pgp/bin# more nelson.crt
    -----BEGIN CERTIFICATE-----
    -----END CERTIFICATE-----
    ====================================================

    Is there anything wrong I did?  Thank you.


     



  • 2.  RE: x509-cert --export-format exports an empty file

    Posted Sep 03, 2014 10:31 AM

    You did not specify the passphrase.

     

    Correct usage for that version should be

    pgp --export-key-pair "Test User" --export-format x509-cert --cert CERTIDHERE --passphrase "passphrasehere"