Yubico Forum
https://forum.yubico.com/

PGP and Multiple computers
https://forum.yubico.com/viewtopic.php?f=35&t=2446
Page 1 of 1

Author:  slowz3r [ Wed Oct 05, 2016 1:39 am ]
Post subject:  PGP and Multiple computers

:oops: So I've done my fair share of searching and haven't really come to a conclusion. I Have my PGP key setup on my yubikey. I can encrypt and decrypt as intended, when I try to decrypt with my yubikey removed it doesn't work, awesome.

Now what I'm wondering is how do I go about using this on say another machine. Obviously PGP must be installed. Is there a way I can use my yubikey to encrypt/decrypt information on this secondary machine? Do I need to completely take my private key and import it to this new machine in order to have my yubikey function as it does on my primary machine I used to set it up.

Author:  TheStigh [ Wed Feb 01, 2017 6:51 pm ]
Post subject:  Re: PGP and Multiple computers

slowz3r wrote:
:oops: So I've done my fair share of searching and haven't really come to a conclusion. I Have my PGP key setup on my yubikey. I can encrypt and decrypt as intended, when I try to decrypt with my yubikey removed it doesn't work, awesome.

Now what I'm wondering is how do I go about using this on say another machine. Obviously PGP must be installed. Is there a way I can use my yubikey to encrypt/decrypt information on this secondary machine? Do I need to completely take my private key and import it to this new machine in order to have my yubikey function as it does on my primary machine I used to set it up.


No, you simply import the public key (or use fetch if you have configured the URL on YubiKey):
gpg --import < pubkey.txt (or whatever filename you used for the public key)

Then insert the card and verify it by:
gpg --card-status

Finally trust the public key:
--edit-key YOUR KEY ID
trust
choose 5 = I trust ultimately
confirm with Y
then quit

You're good to go on the new computer :)

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/