gpg --expert --full-gen-key

Output:

gpg: key <keyID> marked as ultimately trusted

Add authentication key (if not default)

gpg --expert --edit-key <keyID>
addkey

Back pgp-Key up

gpg --export-secret-key --armor <keyID>

Add pgp-keys to the YubiKey

gpg --expert --edit-key <keyID>
addkey

When asked do not safe your changes enabling you to copy the key to another Yubikey.


article by yubikey