Configure Yubikeys with GPG

Preconditions

GPG can recognize Yubikeys

<br />
    gpg --card-status<br />

Move GPG key into Yubikeys

Starting editing key.

<br />
gpg --edit-key &lt;key-id&gt;<br />

Starting editing private key.

<br />
    toggle<br />

Moving the signature key and the encryption key into smartcards(Yubikeys).

<br />
    keytocard<br />

Selecting the anthentication key.

<br />
    key 2<br />

Moving the anthentication key into smartcards(Yubikeys).

<br />
    keytocard<br />

Postconditions

<br />
    gpg --list-secret-keys<br />

Card serial no. = xxxx xxxxxxxx is shown.

Reference

  1. dev.yubico: PGP

发表评论

电子邮件地址不会被公开。 必填项已用*标注