-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Pinentry Serve returned error: EOF #28
Comments
@stffndtz can you give it a try to the latest release (v0.0.3) and check if it fixes the issue? |
@jorgelbg It seems I am still getting the same error after the update:
Post update (via brew) I ran
Let me know if I can help! |
I have the same issue. I can use
|
Could this be the culprit? Lines 428 to 431 in 0235243
Note the response from
So maybe line
I am just guessing. |
Just to be clear, if you are only checking directly with: $ echo GETPIN | pinentry-touchid This is rightfully showing the pinentry-mac GUI. This happens because you haven't followed the full assuan protocol to talk to pinentry. Yes, You need to set pinentry-touchid as your pinentry-program in
and also reload your gpg-agent: $ gpg-connect-agent reloadagent /bye For checking that it is working you can use: $ echo 1234 | gpg -as - You can also interact directly via stdin with pinentry-touchid, but you need to do the full dance of providing the potions that the gpg-agent usually sends to any pinentry program. |
This comment doesn't appear to have any relation to this bug report. |
What I meant is that just sending In this case |
Thanks, I'll give it a try soon. To clarify, the problem (for me at least) is that In my case, I am attempting to use software called |
I don't know anything about Assuan commands, but the way that |
Sorry, I don't use |
I've added a step to the CI that should build & upload the binaries. You could grab the built binaries from the summary page of the workflow. For instance for the latest commit: https://github.com/jorgelbg/pinentry-touchid/actions/runs/2831484675 (at the bottom). |
I had a chance to take a look under the hood at what When used with PGP the One way to go is to use a default label/name for tagging the keychain item. The downside of this is that you wouldn't be able to have more than 1 keys stored in the keychain (for Anyhow, this is my interpretation of what I've seen on the interaction between |
Excellent, thanks for that clear explanation. I had wondered how pinentry-touchid knows which secret is being requested. That explains it. The This would not help with |
The majority of the information is passed via the Lines 52 to 53 in 1170eb6
If the description contains any of the info that matches those regexes (plus the key ID) it will be used to label the keychain item. If
The info passed down to pinentry-touchid is essentially provided with the intention of helping the user identify which passphrase is needed (or to automatically fetch it from the keychain) so it shouldn't be insecure by default. In the gpg-agent case, the private key is never shared. In any case, is responsibility of the caller that sends the commands to pinentry. Having said that, I'm not familiar enough with |
Describe the bug
When running
echo "GETPIN" | pinentry-touchid
I get the following responsepinentry-mac runs as expected - I have tried to unsinstall & re-install pinentry-mac & pinentry-touchid with no sucess at this point. I have also been looking for similar issues but haven't found a solution as of yet.
System information
macOS
GPG
gpg --version
Yes.
Configuration
gpgconf
.Logs
gpg-agent
:pinentry-touchid
:The text was updated successfully, but these errors were encountered: