Secret key not available

Hauke Laging mailinglisten at hauke-laging.de
Fri May 25 15:59:29 CEST 2012


Am Fr 25.05.2012, 13:39:27 schrieb DUELL, BOB:
> Hi,
> 
> Couple quick questions (and probably a FAQ):

You need the link to the FAQ?

http://www.gnupg.org/documentation/faqs.en.html


> 1.  Attempting to decrypt a file that was sent to me by someone else,
>     I get this message:
> 
>     gpg: decryption failed: secret key not available
> 
>     Could that mean the file was not encrypted with my public key?

Indeed.


> 2.  Assuming the above it "yes", is there a command I can use to
>     display what key(s) were used to encrypt the file?

When I try to decrypt such a file then this happens:

start cmd:> LC_ALL=C gpg --decrypt --output /dev/null \
 test.html.unavailable_key.gpg
gpg: encrypted with 2048-bit RSA key, ID 0x12345678, created 2012-05-22
      "foo bar <foo at bar.net>"
gpg: decryption failed: No secret key

So it has obviously been encrypted for key 0x12345678.


Hauke
-- 
PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 555 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20120525/abfccc10/attachment-0001.pgp>


More information about the Gnupg-users mailing list