Video Screencast Help

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.

Comments 4 CommentsJump to latest comment

Alex_CST's picture

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?

Please mark posts as solutions if they solve your problem!

http://www.cstl.com

dfinkelstein's picture

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

 

file.pgp:verify (3144:data is encrypted to unknown ID 0x73357D11)
file.pgp:verify (1080:no private key could be found for decryption)
 

 

in which case you have no idea to whom the file was actually encrypted.  Or, you might see something like

 

file.pgp:verify (3093:data is encrypted to subkey ID 0x73357D11)
file.pgp:verify (3044:subkey ID 0x73357D11 belongs to 0xCF73E89C Jon Test <jt@eng.pgp.com>)
file.pgp:verify (1080:no private key could be found for decryption)
 
This tells you that you at least have the corresponding public key in your keyring.

 

--------

David Finkelstein

Symantec R&D

Amandeep Singh Deol's picture

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.

Alex_CST's picture

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.

Please mark posts as solutions if they solve your problem!

http://www.cstl.com