Mailing List Archive

Importing GnuPG private key into PGP?
I created a key on my linux station, but I have to PGP on my windows
station at the moment.

I tried to gpg -a --export-secret and then tried to import it into
PGP6.5, but it rejected the key as invalid.

Is there some special argument I have to use to export a key that can
be imported into PGP? Or should I just revoke this one, and create a
new PGP key and import it into GnuPG, since I know this method does
work?



--
William X. Walsh - DSo Internet Services
Email: william@dso.net Fax:(209) 671-7934
Editor of http://www.dnspolicy.com/

Join DNSPolicy.com's discussion list!
http://www.dnspolicy.com/mailman/listinfo.cgi/discuss
<IDNO MEMBER) http://www.idno.org
Re: Importing GnuPG private key into PGP? [ In reply to ]
By default, I think GnuPG encrypts your secret key using the Blowfish
symmetric algorithm. PGP will only understand 3DES, CAST5, or IDEA
symmetric algorithms. The following method works for me:

$ gpg --s2k-cipher-algo=CAST5 --s2k-digest-algo=SHA1 --compress-algo=1 \
--edit-key username

then use passwd to change the password (just change it to the same thing,
but it will encrypt the key with CAST5 this time).

Now you can export it and PGP should be able to handle it. -Todd

---------------------------------------
Todd L. Brooks
Department of Mechanical Engineering
Yale University
9 Hillhouse Avenue
PO BOX 208286
New Haven, CT 06520-8286
(203) 432-4362 (office and voice mail)
(203) 432-4363 (acoustics lab)
(203) 432-7654 (FAX)