Import PGP Secret Keys

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


-----BEGIN PGP SIGNED MESSAGE-----
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.

Charly
KeyOnCard at:
<http://homepage.mac.com/shavital/iblog/B788933981/C1591872826/E20061125110933/index.html>




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: GnuPG for Privacy
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRZpo8iRJoUyU/RYhAQIAiQP+KJSgETZqLbruj1ZMnyeCki5lns99TvQN
IeBATyR8xhyT44Vjn2W8y5hsB41dYtUt1Oz+AcjPEpdzhFCZhgeIc5o4xTQxmqEV
3EiHypq3/M+XrSMdDU39YzkkAozn1vLBLcj+JNAhKu6H6F886osRnxLnuuJive5o
FfnUdQnbgMg=
=m15m
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list