import existing key pair and set as personal

Asked by stjohn

Hi,
I am using hardy heron and seahorse 2.22.2 . I have recently got a new laptop and am using gnome instead of kde. Previously I was using kmail. I already have a gnupg key pair and would like to use them and my existing passphrase with evolution and seahorse. Can I do this and how?

many thanks,
Stjohn

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu seahorse Edit question
Assignee:
No assignee Edit question
Solved by:
Saša Teković
Solved:
Last query:
Last reply:
Revision history for this message
Andre Mangan (kyphi) said :
#1

Open your Home directory and press Ctrl+h to show the hidden files.

Locate ".gnupg", right click and select "copy" and save it to a USB device.

In your new computer, open your Home directory and copy and paste this file into that directory.

Revision history for this message
Best Saša Teković (hseagle2015) said :
#2

You can export your private key by typing the following command in Terminal/Konsole:

gpg --export-secret-key -a "User Name" > private.key

Then copy private.key file to your new computer and enter this command:

gpg --allow-secret-key-import --import private.key

You can also export/import public keys with following commands:

gpg --export -a "User Name" > public.key

gpg --import public.key

Revision history for this message
stjohn (stjohn) said :
#3

Hi Sasa,
that answers my question. Many thanks for your help!

best regards,
St.john

Revision history for this message
Mehmet Altan Pire (zippidi) said :
#4

Hi,
I deleted my pgp signature key after export "key.asc" accidentally.
Now, how import as a personal key? I tried import but it is in a other keys tab.
Please help me...