← 返回命令列表

Linux command

gpg-card 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

List available smartcards

gpg-card list

Display card information

gpg-card info

Change PIN

gpg-card passwd

Set cardholder name

gpg-card name

Fetch public key from card URL

gpg-card fetch

Generate keys on card

gpg-card generate

Reset card to factory defaults

gpg-card factory-reset

说明

gpg-card is a GnuPG tool for managing OpenPGP and PIV smartcards. It provides an interactive interface for configuring cards, managing PINs, generating keys, and transferring keys to smartcards. Introduced in GnuPG 2.3 as a replacement for the older gpg --card-edit workflow, it offers a more streamlined command-line experience for smartcard operations.

FAQ

What is the gpg-card command used for?

gpg-card is a GnuPG tool for managing OpenPGP and PIV smartcards. It provides an interactive interface for configuring cards, managing PINs, generating keys, and transferring keys to smartcards. Introduced in GnuPG 2.3 as a replacement for the older gpg --card-edit workflow, it offers a more streamlined command-line experience for smartcard operations.

How do I run a basic gpg-card example?

Run `gpg-card list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more gpg-card examples?

This page includes 7 examples for gpg-card, plus related commands for nearby Linux tasks.