Skip to content

OpenPGP card

Pico OpenPGP exposes an OpenPGP card applet over USB CCID. The normal model is the same as other OpenPGP cards: signature, decryption, and authentication roles controlled by user and admin credentials.

Check the card

Start with:

gpg --card-status

If the card is not visible, check PC/SC, CCID, and scdaemon before trying to generate keys.

PINs

The OpenPGP card model uses:

Credential Role
PW1 user operations: sign, decrypt, authenticate
PW3 admin operations: key generation, import, settings
reset code recovery path for blocked user PIN, if configured

Change the default credentials before using the card with important material:

gpg --card-edit
gpg/card> admin
gpg/card> passwd

Generate keys on-card

gpg --card-edit
gpg/card> admin
gpg/card> key-attr
gpg/card> generate

Choose attributes separately for each role, and check which slot you are configuring:

  • signing key
  • decryption key
  • authentication key

Upstream claims RSA, ECDSA, ECDH, Brainpool, and secp256k1 support. Host tool behavior can still vary, so validate with the exact GnuPG/OpenSC stack you plan to use.

Import existing keys

If you need an offline master-key workflow, import subkeys instead:

gpg --expert --edit-key YOURKEY
gpg> toggle
gpg> key 1
gpg> keytocard
gpg> save

The choice depends on your recovery needs:

  • on-card generation minimizes exposure
  • import lets you maintain an off-card recovery story

Daily use

Signing:

echo hi | gpg --clearsign

Decryption:

gpg --decrypt file.gpg

SSH through gpg-agent:

echo enable-ssh-support >> ~/.gnupg/gpg-agent.conf
gpgconf --kill gpg-agent
gpg --export-ssh-key YOURKEY > ~/.ssh/id_openpgp_card.pub

UIF / touch policy

Upstream claims User Interaction Flag support. If enabled for a slot, PIN alone is not enough; the device also requires physical confirmation.

Enable it when you want a physical confirmation before signing or decrypting, and tell operators why the device may wait for a touch.

Reset

A factory reset is destructive and may clear:

  • keys are wiped
  • PIN state is reset
  • card metadata and recovery material may be reset

Test it only on non-critical material unless you are intentionally offboarding the card.