-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
gpg path of pinentry listed by nixos is not installed ... #97861
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/yubikey-smartcard-challenge-mode-usable-on-remote-ssh/8936/16 |
It seems like |
Is this a recent regression, or when did you ran into this? Are you actually running the version of gpg-agent configured with that pinentry? (try `ps wwaux|grep gpg-agent`)
|
reyman mentioned on IRC that this is the first time they're trying to set this up. |
@flokli Yes @NieDzejkob is right, this is the first time i try this thing, using unstable to get some recent patch for yubikey/ssh/luks things. Perhaps problem of pinentry could be link to #95777 ? I'm constating another thing strange, after some time i need to restart manually gpg-agent :
But i see another thing weird, it seems there is another gpg that run sometimes :
So there is some hook somewhere that start another gpg agent, i suppose this is linked to other issues on gpg like #92084 / #57779 / #72597 / |
Too bad that there still is no fix for that :-( |
Ugh, just ran into this today. A shame you have to google and rely on bug reports to get a workaround. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/yubikey-smartcard-challenge-mode-usable-on-remote-ssh/8936/20 |
I am getting gnupg from a nix-shell and ran into this. It previously worked fine but now gives me this error. I don't have any configuration in my nixos config for it |
Right @jasoncarr0 @flokli , i had the same problem without any config for gpg-agent in my configuration.nix.
Return Another problem :
pinentry-curse don't exist, see #95777 ... |
So running We currently do start a gpg-agent in a user session, which is configured with an appropriate pinentry depending on your system configuration: #71095 There were some ideas on having a wrapper at |
Thanks @flokli for pointing me these remarks/issues. |
I'm not very familiar with how the live cds currently look like, but both gnome3 and plasma5 environments should configure an appropriate pinentry flavour - so it might be just a matter of setting gnupg might already be in the closure anyways 🤷 |
@flokli Ok i understand that things seems to work using graphical way, but that don't solve the problem of "curses" flavor .. which don't work :-/ |
You mean, the minimal installer should include a gnupg with working pinentry?
|
Has anyone gotten gpg to work? I'm completely blocked, unable to encrypt/decrypt anything. An added problem is mentioned in nix-community/home-manager#887, where even if pinentry would work, the |
|
My setup:
Just changed from
The gpg-agent seems to be fine:
|
Could you start `gpg-agent` manually, adding the `--verbose` option?
|
I think I found something:
So I arrived here: #73332 (comment) And tried the
|
I also have the same problem of gpg-agent duplication, problem of homedir. This happen at initrd stage but this is probably linked : #106563 (comment) :/ |
I know nothing about gpg and only got here because I'm trying to use
:( EDIT: Never mind, it's late and I need sleep now. The error message is different this time, and this error I can handle with
Changing from |
Is there a fix or workaround for this yet that just hasn't been pushed to stable? |
unfortunately I ended here. programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
}; my error
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I have a fully working NixOS + PGP + Yubikey setup, including ssh&gpg signing forwarding. For the ones sent here from web search: gpg setup (especially using hardware keys) involves bunch of things: ssh/gpg agents, scdaemon, pscsd daemons, each with possible bugs, and sometimes not playing well with each other. Other than the below described issue, I know for a fact that everything around this setup works perfectly with NixOS, but (just like with any other distro) it is somewhat fragile, and it's easy to accidentally break it and then might be hard to debug it. The only wonky thing is that that I'm unable to completely address is that unless you specify the absolute path in
As you can see - it works because it has the If anything stops/kills this My ssh forwarding setup needs to delete/override some sockets, and thus I have to keep fixing this after each time I connected via ssh with my NixOS desktop. |
I've run into this bug on my pc and on my laptop, and the solution i ended up using is creating |
You cannot set --homedir when you want to use pinentry. This is an upstream limitation and upstream does not want to fix that issue. The standard usecase when using programs.gnupg and programs.gnupg.agent is working as expected and should work even better after the pinentry rework on the split package. |
Describe the bug
gpgconf indicate that pinentry is not installed, so it's not possible to encrypt or decrypt using gpg
To Reproduce
Steps to reproduce the behavior:
1 - My configuration.nix
2- my .gnupg folder contain
gpg.conf
empty gpg-agent.conf
3 - run
4 - see the process
5 - see the problem (1)
6 - see the problem (2)
I also try to install pinentry manualy, but that fail because PATH in catalog differs.
Expected behavior
Possibility to decrypt and encrypt using my smartcard/yubikey by calling gpg
Additional context
I'm trying to use Yubikey pgp on a remote ssh session
Notify maintainers
@flokli
Metadata
"x86_64-linux"
Linux 5.4.62, NixOS, 20.09pre242769.61525137fd1 (Nightingale)
yes
yes
nix-env (Nix) 2.3.7
"nixos-20.09pre242769.61525137fd1"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: