PGP5 and v4 GPG keys

David Shaw dshaw at
Thu Oct 28 04:31:50 CEST 2004

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 load
> 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 possible
> 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.


More information about the Gnupg-users mailing list