Not able to decrypt the file
Created: 17 Oct 2012 | 4 comments
While we are trying to decrypt the file received from our client it is giving an error “Private key not found” .
1080:no private key could be found for decryption.
Please provide us the solution ASAP.
Discussion Filed Under:
Comments 4 Comments • Jump to latest comment
Have you specified where to look for the private key? Where is the private key being held? What is the full command you are actually running to result in this error?
http://www.cstl.com
Most likely, the file wasn't encrypted to a key you possess.
If you run "pgp --list-keys" it will show you all the keys in your keyring. Some of these are your prviate keys, and the others are the public keys of people you communicate with.
Run "pgp --verify file-to-verify" and it will tell you the KeyID of the recipient key. The file should be encrypted to an encryption subkey. You'll see a message like
in which case you have no idea to whom the file was actually encrypted. Or, you might see something like
--------
David Finkelstein
Symantec R&D
We ran the below command:
C:\Documents and Settings\cep.orion>pgp --decrypt "C:\SC\CReceivedFile\R
eports\PGPEnc\ACKIFILE.1C601.101016335921.IHCL10OCT201113413100002.PGP" --passphrase "test"
Alex,
Where does the private key resides, what path should be given.
Awaiting your reply.
There is no default path, when you first create the key you choose where to put it. What David suggested about verifying the file is a very good starting point, it will tell you if the file you're trying to decrypt has a corresponding key.
http://www.cstl.com
Would you like to reply?
Login or Register to post your comment.