Export private key

We have Gpg4win v2.2.1 and I can't find a way to export the private key.  The public key yes but not the private key.  I found that I  can export private keys using Kleopatra (v 2.2.5).  My question is: If I upgrade to version 2.2.5, will I be able to use the key that I generated with 2.2.1?  If I am still able to use the key, then I could export the private key and use it on another profile.  I hope this makes sense to the experts.  thanks in advance.
dmbonilla4Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave HoweSoftware and Hardware EngineerCommented:
from the top then
1) gpg4win is actually just a gui shim in front of the command line gpg tool. Try running that tool with
gpg --export-secret-key -a "key id"
(possibly gpg2, depending on which binary you have)

2) always make sure you have a backup of your keyrings before you upgrade (pubring.gpg and secring.gpg) just in case, but yeah, your current keyrings and keys will continue to work after upgrading

3) note that those two files can be used on another installation - so depending on why you want to export it, copying those two files across could be all you need to do

4) all your gpg-type apps should be using the same common database; so, if you have (for example) thunderbird+enigmail, you can use the key manager in enigmail to export your secret key.

5) the same is true of any other apps you install - so you could install winpt or a kleo separately, and use those to export with, without having to touch your existing base install.
0
btanExec ConsultantCommented:
Upgrade via minor version will not override your private key file and will still exist. That is the easiest but note
As soon as you have installed Gpg4win, check whether your old certificates are already there. You can do this using the Kleopatra or GPA certificate managers. If your certificates are already there, the old encryption system already corresponded with the new conventions for certificate storage locations, and you need not do anything else.

If however your old certificates do not appear, simply import them from the backup copies.
If you are using the GPA certificate manager as in past version of old cipher, you can also use the backup option offered by this program. It should be similar as of GPA version from Gpg4win too.

Otherwise, make sure minimally back up the two files - secring.gpg and pubring.gpg and import these two files using Kleopatra after installation and cannot find those keys...

The use of the command line (which will also work) to export the key  (note - normal export with "--export" will not include any private keys. Instead use "--export-secret-keys") https://montemazuma.wordpress.com/2010/03/01/moving-a-gpg-key-privately/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Encryption

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.