Symantec Developer Group

 View Only

1080:no private key couldbe found for decryption

  • 1.  1080:no private key couldbe found for decryption

    Posted Aug 13, 2015 07:11 AM

    I have earlier created a key pair using my desktop version and now imported the same in my command line version of PGP Command Line 10.3.2 build 12316. 

    I am now trying to decrypt a file recieved from my vendor who has encrypted it using the public key shared by us and getting the below issue.

    C:\Users\T872>pgp --verify C:\AFS\FromAFS\Test\Report\SIB_ACCTEXT_12082015.ZIP.pgp
    C:\AFS\FromAFS\Test\Report\SIB_ACCTEXT_12082015.ZIP.pgp:verify (3142:data is encrypted to key ID 0xB38D2B97)
    C:\AFS\FromAFS\Test\Report\SIB_ACCTEXT_12082015.ZIP.pgp:verify (3143:key belongs to 0xB38D2B97 AFS <ITSecurity@sib.ae>)
    C:\AFS\FromAFS\Test\Report\SIB_ACCTEXT_12082015.ZIP.pgp:verify (1080:no privatekey could be found for decryption)

    C:\Users\T872>pgp --list-keys
     Alg  Type Size/Type Flags   Key ID     User ID
    ----- ---- --------- ------- ---------- -------
     RSA4 pair 2048/2048 [VI---] 0x2BA91DB5 Syed Abbas
    *RSA4 pair 2048/2048 [VI---] 0x173D5E7B sibtest1
     RSA4 pub  2048/2048 [-----] 0xEB91FF9E AlEtihadCreditBureauEKEY01 <vjvankadari@mof.gov.ae>
     RSA4 pub  2048/2048 [-----] 0xB38D2B97 AFS <ITSecurity@sib.ae>
    4 keys found

    C:\Users\T872>PGP --decrypt C:\AFS\FromAFS\Test\Report\SIB_ACCTEXT_12082015.ZIP.pgp --recipient 0xB38D2B97 --passphrase "SEDpgpAFS@#$" --output C:\AFS\FromAFS\Test\SIB_ACCTEXT_12082015.txt
    C:\AFS\FromAFS\Test\Report\SIB_ACCTEXT_12082015.ZIP.pgp:decrypt (1080:no private key could be found for decryption)