how to get private keys out of a old computer

John Clizbe John at
Wed Jan 21 13:33:03 CET 2009

Condor Kim wrote:
> I have a question, can anyone help me?
> on my old computer i had gpg4win and enigmail all installed with several
> private keys created. but then i bought a new computer and and
> reinstalled gpg4win on it. now how do i recover the old private keys
> from the previous computer? i do still have the hard drive of the
> previous old computer. i tried to retrieve keys with PTA, and found a
> file called "trustedkeys" outside the "users" file on the old hard
> drive, but when i retrieved this file, it said "no keys are found".

The default keyring location on Windows for GnuPG is %APPDATA%\GnuPG.

On Vista this typically expands to C:\Users\<username>\AppData\Roaming\GnuPG

Copy/Move this entire directory to the same location on your new machine,
changing <username> if necessary.

running 'gpg -version' at a command prompt on either machine will list out the
expected location of your keyring files.

John P. Clizbe                      Inet:John (a)
You can't spell fiasco without SCO. hkp://  or
     mailto:pgp-public-keys at

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 680 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20090121/08cb9261/attachment-0001.pgp>

More information about the Gnupg-users mailing list