snippetbashTip
gpg-card — Administrate OpenPGP and PIV smart cards. Similar to `gpg --card-edit`. More information: <https://m
Viewed 0 times
pivopenpgpcommandandclismartadministrategpg-card
Problem
How to use the
gpg-card command: Administrate OpenPGP and PIV smart cards. Similar to gpg --card-edit. More information: <https://manned.org/gpg-card>.Solution
gpg-card — Administrate OpenPGP and PIV smart cards. Similar to gpg --card-edit. More information: <https://manned.org/gpg-card>.Start in interactive mode:
gpg-cardInvoke one or more commands non-interactively:
gpg-card {{command1}} -- {{command2}} -- {{command3}}Show information about a smart card:
gpg-card listRetrieve the public key using the URL stored on an OpenPGP card:
gpg-card fetchSet the URL used by the
fetch command:gpg-card urlChange or unblock PINs (uses the default action for the card in non-interactive mode):
gpg-card passwdToggle the forcesig flag of an OpenPGP card (i.e. require entering the user PIN for signing):
gpg-card forcesigFactory reset a smart card (i.e. delete all data and reset PINs):
gpg-card factory-resetCode Snippets
Start in interactive mode
gpg-cardInvoke one or more commands non-interactively
gpg-card {{command1}} -- {{command2}} -- {{command3}}Show information about a smart card
gpg-card listRetrieve the public key using the URL stored on an OpenPGP card
gpg-card fetchSet the URL used by the `fetch` command
gpg-card urlContext
tldr-pages: common/gpg-card
Revisions (0)
No revisions yet.