Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- [Containers and Virtual Machines](./config/containers-and-vms/index.md)
- [libvirt](./config/containers-and-vms/libvirt.md)
- [LXC](./config/containers-and-vms/lxc.md)
- [GnuPG](./config/gnupg.md)
- [XBPS Package Manager](./xbps/index.md)
- [Advanced Usage](./xbps/advanced-usage.md)
- [Repositories](./xbps/repositories/index.md)
Expand Down
25 changes: 25 additions & 0 deletions src/config/gnupg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# GnuPG

Void ships both GnuPG legacy (as `gnupg1`) and GnuPG stable (as `gnupg`).

## Smartcards

For using smartcards such as Yubikeys with GnuPG, there are two backends for
communicating with them through GnuPG: The internal CCID driver of GnuPG's
scdaemon, or the PC/SC driver.

## scdaemon with internal CCID driver

By default, scdaemon, which is required for using smartcards with GnuPG, uses
its internal CCID driver. For this to work, your smartcard needs to be one of
the smartcards in the udev rules
[here](https://github.com/void-linux/void-packages/blob/master/srcpkgs/gnupg/files/60-scdaemon.rules)
and you need to either be using elogind or be a member of the plugdev group. If
these two condition are fulfilled and you don't have pcscd running, `gpg
--card-status` should successfully print your current card status.

## scdaemon with pcscd backend

If you need to use pcscd for other reasons, run `echo disable-ccid >>
~/.gnupg/scdaemon.conf`. Now, assuming your pcscd setup works correctly, `gpg
--card-status` should print your card status.