Contents
How do I use YubiKey with gpg?
To import the key on your YubiKey:
- Insert the YubiKey into the USB port if it is not already plugged in.
- Enter the GPG command: gpg –edit-key 1234ABC (where 1234ABC is the key ID of your key)
- Enter the command: keytocard.
- When prompted if you really want to move your primary key, enter y (yes).
How do I find my public key on YubiKey?
The public key cannot be extracted from the Yubikey so you need to ensure you can still access it later. You can export it as above and keep that armored version around or better yet upload the key to a key server with gpg –send-keys .
What can I do with a YubiKey?
Just plug your YubiKey into any computer and log in the way you normally would. That’s really it—you’ll be able to log in to all of your accounts, same as before. You can use your YubiKey to log in on as many devices as you want, so long as there’s a slot for it.
How to get GPG export secret key from YubiKey?
Insert Yubikey with subkeys on it, verify these subkeys by gpg –card-status. Remove the Yubikey. Run gpg –list-secret-key and the subkeys from the Yubikey will appear. You may also run gpg –armor –export-secret-key and a private key will be printed (this private key does not seem to be able to perform any actions).
Can a YubiKey be inserted into a USB port?
Insert the YubiKey into the USB port if it is not already plugged in. Enter the GPG command: gpg –edit-key 1234ABC (where 1234ABC is the key ID of your key) When prompted if you really want to move your primary key, enter y (yes).
How to create a backup of your YubiKey?
To create a backup of your key: 1 Insert the YubiKey into the USB port if it is not already plugged in. 2 Enter the GPG command: gpg –export-secret-key –armor 1234ABC (where 1234ABC is the key ID of your key) 3 Store the text output from the command in a safe place ( e.g. Print the text, save the text in password managers, save… More
How do I move my YubiKey to a new key?
Enter the GPG command: gpg –edit-key 1234ABC (where 1234ABC is the key ID of your key) Enter the command: keytocard When prompted if you really want to move your primary key, enter y (yes). When prompted where to store the key, select 1.