-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnupg-pkcs11-scd: init at 0.9.2 #71266
Conversation
This adds gnupg-pkcs11-scd, a smart card daemon for GnuPG that supports PKCS#11 smartcards (such as the Yubikey PIV module). You can use it by adding something like this to your ~/.gnupg/gpg-agent.conf: scdaemon-program /home/<user>/.nix-profile/bin/gnupg-pkcs11-scd You will also need to install `opensc` and have a ~/.gnupg/gnupg-pkcs11-scd.conf with something like the following: providers opensc provider-opensc-library /home/philandstuff/.nix-profile/lib/pkcs11/opensc-pkcs11.so Then `gpg` smartcard operations will access your PKCS#11-capable smartcard.
How does this interact with https://nixos.org/nixos/options.html#services.pcscd.enable? |
@grahamc good question. Although any given user can only use one of pcscd or gnupg-pkcs11-scd, it doesn't hurt to have both running - ie they don't conflict. This is because access is controlled via the So it's possible (and indeed I have verified) to use gnupg-pkcs11-scd even if |
By the way, I don't like how much manual config is still required to get this working - see the original post / commit message for what I mean. I'm open to suggestions about how this could be improved. |
I've seen this just by coincidence, as I've packaged the Btw: I think that the amount of manual configuration is actually just fine. I prefer to not mess with a user's GnuPG configuration, and IMHO without any change it should always use the standard |
@lschuermann would you like to add yourself as a maintainer then? :) EDIT: doh, you can’t push to my fork. Let me rephrase: would you be open to being an additional maintainer, in which case I’ll update the PR? |
As I actually plan on using this for an extended period of time, this is fine with me. That way, we can just shout at each other if something breaks. ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am yet to really try this with TPM, but the library seems to be fine so works for me.
''; | ||
homepage = http://gnupg-pkcs11.sourceforge.net/; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ lschuermann philandstuff ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
gnupg-pkcs11-scd: init at 0.9.2 (cherry picked from commit fa7d7eb)
Motivation for this change
This adds gnupg-pkcs11-scd, a smart card daemon for GnuPG that supports
PKCS#11 smartcards (such as the Yubikey PIV module).
You can use it by adding something like this to your
~/.gnupg/gpg-agent.conf:
You will also need to install
opensc
and have a~/.gnupg/gnupg-pkcs11-scd.conf with something like the following:
Then
gpg
smartcard operations will access your PKCS#11-capablesmartcard.
Things done
sandbox
innix.conf
on non-NixOS)./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @