# Import Key
![]()
# List Keys
# list keys
# list secret keys
![]()
# Change The Ownertrust
![]()
# Import To Smart Card
| gpg --expert --edit-key <id> |
# Select key 1 and import to card
| gpg> key 1 |
| |
| gpg> keytocard |
| |
| 2 |
![]()
# Unselect key 1,Select key 2 and import to card
| gpg> key 1 |
| |
| gpg> key 2 |
| |
| gpg> keytocard |
| |
| 1 |
![]()
# Unselect key 2,Select key 3 and import to card
| gpg> key 2 |
| |
| gpg> key 3 |
| |
| gpg> keytocard |
| |
| 3 |
| |
| gpg> quit |
| |
| y |
![]()
# Print Card Status
![]()
# Bind Smart Card
| gpg-connect-agent "scd serialno" "learn --force" /bye |
# Set Touch On
for yubikey & conokey , the gpg touch default settting is off. use ykman change this setting.
| |
| ykman openpgp keys set-touch sig on |
| |
| |
| ykman openpgp keys set-touch aut on |
| |
| |
| ykman openpgp keys set-touch enc on |
| |
| |
| ykman openpgp keys set-touch att on |