Endpoint Encryption

 View Only
  • 1.  Not able to decrypt the file

    Posted Oct 17, 2012 06:07 AM

    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.



  • 2.  RE: Not able to decrypt the file

    Posted Oct 17, 2012 08:17 AM

    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?



  • 3.  RE: Not able to decrypt the file

    Posted Oct 17, 2012 01:17 PM

    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.

     



  • 4.  RE: Not able to decrypt the file

    Posted Oct 17, 2012 01:29 PM

    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.



  • 5.  RE: Not able to decrypt the file

    Posted Oct 18, 2012 03:58 AM

    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.