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

gpg-card — Administrate OpenPGP and PIV smart cards. Similar to `gpg --card-edit`. More information: <https://m

Submitted by: @import:tldr-pages··
0
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-card


Invoke one or more commands non-interactively:
gpg-card {{command1}} -- {{command2}} -- {{command3}}


Show information about a smart card:
gpg-card list


Retrieve the public key using the URL stored on an OpenPGP card:
gpg-card fetch


Set the URL used by the fetch command:
gpg-card url


Change or unblock PINs (uses the default action for the card in non-interactive mode):
gpg-card passwd


Toggle the forcesig flag of an OpenPGP card (i.e. require entering the user PIN for signing):
gpg-card forcesig


Factory reset a smart card (i.e. delete all data and reset PINs):
gpg-card factory-reset

Code Snippets

Start in interactive mode

gpg-card

Invoke one or more commands non-interactively

gpg-card {{command1}} -- {{command2}} -- {{command3}}

Show information about a smart card

gpg-card list

Retrieve the public key using the URL stored on an OpenPGP card

gpg-card fetch

Set the URL used by the `fetch` command

gpg-card url

Context

tldr-pages: common/gpg-card

Revisions (0)

No revisions yet.