aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
diff options
context:
space:
mode:
authorTai Groot <tai@taigrr.com>2023-03-21 15:57:51 -0700
committerTai Groot <tai@taigrr.com>2023-03-21 15:57:51 -0700
commitec2e8cae7ea9f357b249cfdaae1efca6c58f8035 (patch)
treea7be8d5dea05b903c6566d79e51589ae0323aa42 /README.md
parentMerge pull request #372 from PhilipMay/patch-2 (diff)
downloadYubiKey-Guide-ec2e8cae7ea9f357b249cfdaae1efca6c58f8035.tar.gz
add polkit rule troubleshooting tip
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index cf92f75..f50a184 100644
--- a/README.md
+++ b/README.md
@@ -2861,6 +2861,24 @@ gpg: [stdin]: encryption failed: Unusable public key
- Refer to Yubico article [Troubleshooting Issues with GPG](https://support.yubico.com/hc/en-us/articles/360013714479-Troubleshooting-Issues-with-GPG) for additional guidance.
+- If, when you try the above `--card-status` command, you get receive the error, `gpg: selecting card failed: No such device` or `gpg: OpenPGP card not available: No such device`, it's possible that the latest release of pcscd is now requires polkit rules to operate properly. Create the following file to allow users in the `wheel` group to use the card. Be sure to restart pcscd when you're done to allow the new rules to take effect.
+```
+cat << EOF > /etc/polkit-1/rules.d/99-pcscd.rules
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.debian.pcsc-lite.access_card" &&
+ subject.isInGroup("wheel")) {
+ return polkit.Result.YES;
+ }
+});
+polkit.addRule(function(action, subject) {
+ if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
+ subject.isInGroup("wheel")) {
+ return polkit.Result.YES;
+ }
+});
+EOF
+```
+
# Alternatives
* [`piv-agent`](https://github.com/smlx/piv-agent) is an SSH and GPG agent which you can use with your PIV hardware security device (e.g. a Yubikey).