Import and export keys, PGP to GnuPG
Hi,
I need to export an existing PGP key and import it into GnuPG on a different machine. This is how I did the export: Code:
pgp -kx myuser _myuser_public This produced two files: _mykey_public.pgp _mykey_private.pgp. Then I moved them to the target machine and did this: Code:
gpg --import _myuser_public.pgp Now if I try to encrypt the file "test" with gpg: Code:
gpg --encrypt -r myuser test I get this message: Code:
There is no assurance this key belongs to the named user. My understanding is that I am supposed to sign the key for my user. So, I tried doing this: Code: Code:
pg --edit-key myuser Code:
pub xxxx created: xxxx expires: xxxx usage: xxxx Code: Code:
gpg: no default secret key: No secret key Code:
gpg --sign myuser Code:
gpg: no default secret key: No secret key Thanks in advance. |
Quote:
Quote:
|
Quote:
But now, I am having a problem decrypting with that private key. This is what I get: Code:
You need a passphrase to unlock the secret key for |
Quote:
Quote:
|
All times are GMT -5. The time now is 09:27 AM. |