Endpoint Encryption

 View Only
  • 1.  Not able decrypt the file using pgp command line software.

    Posted Mar 22, 2013 01:23 PM

    We are using PGP command line software version 9.9 to decrypt the file in our server.

    While executing the below command we are getting the error mentioend below.

    C:\Program Files\PGP Corporation\PGP Command Line>pgp.exe --decrypt c:\pgp\unpro
    cessed\*.* --passphrase idad2007desktoppass -o c:\pgp\processed
    pgp:open keyrings (1001:could not open keyrings, file not found).

    Any assitance to get this resolved is much appriciated.

    Thanking you in advance.

    With regards

    Divakar

     



  • 2.  RE: Not able decrypt the file using pgp command line software.

    Posted Mar 22, 2013 06:49 PM

    Hi,

    Run "pgp --version --verbose" and check to see where PGP Command Line expects to find your keyring files (this is in the "File information" section).

    You may need to specify a specic home directory, using the "--home-dir" option, to point to your the directory where your keyrings are located.

    Regards,

     



  • 3.  RE: Not able decrypt the file using pgp command line software.

    Posted Mar 23, 2013 03:00 AM

    David thank you very much. I ran the command " pgp --version --verbose" and found the below in the file information.

    File information:
     Home Directory: C:\Documents and Settings\idad_file_user_us\Application Data\PG
    P Corporation\PGP\
     Personal Directory: C:\Documents and Settings\idad_file_user_us\My Documents\PG
    P\
     Public Keyring: C:\Documents and Settings\idad_file_user_us\My Documents\PGP\pu
    bring.pkr
     Private Keyring: C:\Documents and Settings\idad_file_user_us\My Documents\PGP\s
    ecring.skr
     Random Seed: C:\Documents and Settings\idad_file_user_us\Application Data\PGP C
    orporation\PGP\randseed.rnd

    My pgp.exe is installed in the path "C:\Program Files\PGP Corporation\PGP Command Line" and i have a decryption key file in the name idaddesktopkey.asc in the same directory.I tried to set the same dir as home dir and then reran the pgp.exe but ended up with same error.

    pgp:open keyrings (1001:could not open keyrings, file not found)

    But I do not see any file with the extension .skr. Am i missing keyring file ? Kindly help.

    Thanks

    Divakar



  • 4.  RE: Not able decrypt the file using pgp command line software.

    Posted Mar 23, 2013 09:01 PM

    Yes, it appears you do not have keyrings yet.  You will need to create them, and then import the decryption key.

    Run the following commands:

    pgp --create-keyrings

    pgp --import "C:\Program Files\PGP Corporation\PGP Command Line\idaddesktopkey.asc"

    (I believe the above will work, Windows pathnames sometimes confuse me.  You may need to move or copy the .asc file to your current directory, then run "pgp --import idaddesktopkey.asc")

    You will then want to run

    pgp --set-trust <the UserID or KeyID of the key you just imported> --trust --implicit

    (but without the '<' and '>', as in

    pgp --set-trust desktopkey --trust implicit

    )

    Regards,