PGP5 and v4 GPG keys

Hasnain Mujtaba hmujtaba at
Fri Oct 29 19:41:18 CEST 2004

Thank you for verifying this for me. Appreciate it!

-----Original Message-----
From: gnupg-users-bounces at
[mailto:gnupg-users-bounces at] On Behalf Of David Shaw
Sent: Wednesday, October 27, 2004 10:32 PM
To: gnupg-users at
Subject: Re: PGP5 and v4 GPG keys

On Wed, Oct 27, 2004 at 08:24:25PM -0400, Hasnain Mujtaba wrote:
> Thanks for the response David. I am having some problems with v4 RSA
> keys. I have an RSA keypair generated by an open source tool. I can
> it into GPG 1.2.4 using the command: gpg --allow-secret-key-import
> --import. I can then use GPG to encrypt a file using the keypair. But
> when I give GPG the encrypted file to decrypt, I see the following
> message:
> gpg: public key decryption failed: wrong secret key used
> gpg: decryption failed: secret key not available.
> The key pair is attached. The password is password. Would it be
> for you to run an encrypt/decrypt test with this keypair to see if you
> can reproduce this error? 

That key is broken.  As a guess, it seems that the private half is not
really the private half for the public key.  Corrupt, perhaps.


Gnupg-users mailing list
Gnupg-users at

More information about the Gnupg-users mailing list