Skip to content

Commit 1e18375

Browse files
jcgruenhageclassabbyamp
authored andcommitted
gnupg: add documentation about smartcard setups
1 parent 8451c43 commit 1e18375

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
- [Containers and Virtual Machines](./config/containers-and-vms/index.md)
6868
- [libvirt](./config/containers-and-vms/libvirt.md)
6969
- [LXC](./config/containers-and-vms/lxc.md)
70+
- [GnuPG](./config/gnupg.md)
7071
- [XBPS Package Manager](./xbps/index.md)
7172
- [Advanced Usage](./xbps/advanced-usage.md)
7273
- [Repositories](./xbps/repositories/index.md)

src/config/gnupg.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# GnuPG
2+
3+
Void ships both GnuPG legacy (as `gnupg1`) and GnuPG stable (as `gnupg`).
4+
5+
## Smartcards
6+
7+
For using smartcards such as Yubikeys with GnuPG, there are two backends for
8+
communicating with them through GnuPG: The internal CCID driver of GnuPG's
9+
scdaemon, or the PC/SC driver.
10+
11+
## scdaemon with internal CCID driver
12+
13+
By default, scdaemon, which is required for using smartcards with GnuPG, uses
14+
its internal CCID driver. For this to work, your smartcard needs to be one of
15+
the smartcards in the udev rules
16+
[here](https://github.com/void-linux/void-packages/blob/master/srcpkgs/gnupg/files/60-scdaemon.rules)
17+
and you need to either be using elogind or be a member of the plugdev group. If
18+
these two condition are fulfilled and you don't have pcscd running, `gpg
19+
--card-status` should successfully print your current card status.
20+
21+
## scdaemon with pcscd backend
22+
23+
If you need to use pcscd for other reasons, run `echo disable-ccid >>
24+
~/.gnupg/scdaemon.conf`. Now, assuming your pcscd setup works correctly, `gpg
25+
--card-status` should print your card status.

0 commit comments

Comments
 (0)