HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ykman openpgp — Manage the OpenPGP YubiKey application. Note: You need to use `gpg --card-edit` for some settings. M

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandopenpgpclimanageykman openpgpyubikeyapplication

Problem

How to use the ykman openpgp command: Manage the OpenPGP YubiKey application. Note: You need to use gpg --card-edit for some settings. More information: <https://docs.yubico.com/software/yubikey/tools/ykman/OpenPGP_Commands.html>.

Solution

ykman openpgp — Manage the OpenPGP YubiKey application. Note: You need to use gpg --card-edit for some settings. More information: <https://docs.yubico.com/software/yubikey/tools/ykman/OpenPGP_Commands.html>.

Display general information about the OpenPGP application:
ykman openpgp info


Set the number of retry attempts for the User PIN, Reset Code, and Admin PIN, respectively:
ykman openpgp access set-retries {{3}} {{3}} {{3}}


Change the User PIN, Reset Code, or Admin PIN:
ykman openpgp access change-{{pin|reset-code|admin-pin}}


Factory reset the OpenPGP application (you have to do this after exceeding the number of Admin PIN retry attempts):
ykman openpgp reset

Code Snippets

Display general information about the OpenPGP application

ykman openpgp info

Set the number of retry attempts for the User PIN, Reset Code, and Admin PIN, respectively

ykman openpgp access set-retries {{3}} {{3}} {{3}}

Change the User PIN, Reset Code, or Admin PIN

ykman openpgp access change-{{pin|reset-code|admin-pin}}

Factory reset the OpenPGP application (you have to do this after exceeding the number of Admin PIN retry attempts)

ykman openpgp reset

Context

tldr-pages: common/ykman openpgp

Revisions (0)

No revisions yet.