Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Not able decrypt the file using pgp command line software.

Created: 22 Mar 2013 | 3 comments

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



Operating Systems:

Comments 3 CommentsJump to latest comment

dfinkelstein's picture


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.




David Finkelstein

Symantec R&D

Divakar's picture

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
 Public Keyring: C:\Documents and Settings\idad_file_user_us\My Documents\PGP\pu
 Private Keyring: C:\Documents and Settings\idad_file_user_us\My Documents\PGP\s
 Random Seed: C:\Documents and Settings\idad_file_user_us\Application Data\PGP C

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.



dfinkelstein's picture

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






David Finkelstein

Symantec R&D