Import PGP Secret Keys

Charly Avital shavital at
Tue Jan 2 15:16:03 CET 2007

Hash: SHA1

John Rowan wrote the following on 1/2/07 5:31 AM:
> I need to import public and private keys created by PGP 8.0.  GnuPG allows
> me to import the PGP keys, but it imports all of them as public keys.  I
> tried to run > gpg --import --allow-secret-key-import " <filename> ", but it
> still imported the PGP private key as a public key in GnuPG.  Am I missing
> something here?  Ultimately, I need to be able to read files encrypted by
> PGP without having to generate new keys to do so.  I must use the existing
> keys.  At some point, I will need to also encrypt files using these same
> keys.  Thanks in advance for the help.
> John

You might want to try a different order:
gpg --allow-secret-key-import --import [filename].

This will not help if when exporting your PGP key(s) from PGP, you did
not mark the button or square or whatever appears after you use the
Export option, 'Include Private Key(s)'.

But- I don't know what gpg version you are running. In man gpg under 1.4.6:

- --allow-secret-key-import
This is an obsolete option and is not used anywhere.

I am running MacOS X 10.4.8, PGP Desktop 9.5.2, and gpg 1.4.6.
When I use the "Export" option from the File menu command, I am
presented with a sheet (panel) that shows an unmarked small square
button 'Include Private Key(s)'. If I mark the button, save the exported
file, and use:
gpg --import [filename]
gpg will import the secret key.

KeyOnCard at:

Version: GnuPG v1.4.6 (Darwin)
Comment: GnuPG for Privacy
Comment: Using GnuPG with Mozilla -


More information about the Gnupg-users mailing list