Skip to content
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

Update the root README with verbose configuration information #6

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

rickosborne
Copy link
Contributor

To help out people who may not be super familiar with GPG configuration, and may have trouble debugging.

This is probably far too verbose as-is, but it's an abbreviated version of the steps in #3 .

To help out people who may not be super familiar with GPG configuration, and may have trouble debugging.
@Gby56
Copy link

Gby56 commented Nov 16, 2021

I'm still struggling to understand why my touchID won't be prompted, and I have exactly the same setup as you're describing :/ My keychain has saved the gpg key's passphrase, I replaced my pinentry-program to /usr/local/bin/pinentry-touchid and it doesn't work...
Git signing with pinentry-mac works though, but I only have to put my key passphrase once and it stays in memory (probably cache)
I tried adding default-cache-ttl 1 max-cache-ttl 1 but it's not working

@0x3333
Copy link

0x3333 commented Apr 11, 2022

My pinentry-mac doesn't have an option to Save to Keychain, so I cannot use pinentry-touchid. I tried everything I could. Tried GnuPG package, but nothing works.

@0x3333
Copy link

0x3333 commented Apr 12, 2022

Looks like the problem is a missing key in defaults:

defaults write org.gpgtools.pinentry-mac DisableKeychain -bool no

You must set this to NO, otherwise, it will be "true" and doesn't show, even if you have UseKeychain = yes.

@inakiabt
Copy link

inakiabt commented Aug 4, 2022

I can't get pinentry-mac to display the Save in keychain option, I've already tried:

@jorgelbg jorgelbg merged commit 8b8f5c7 into jorgelbg:main Aug 4, 2022
@jorgelbg
Copy link
Owner

jorgelbg commented Aug 4, 2022

@inakiabt Can you check if any of the suggestions in this thread helps?

@inakiabt
Copy link

inakiabt commented Aug 4, 2022

@jorgelbg

killall gpg-agent
killall gpg2
killall gpg
killall dirmngr

Make it work. Thanks!

FYI:

$ defaults read org.gpgtools.common
{
    DisableKeychain = 0;
    UseKeychain = YES;
}

@jorgelbg
Copy link
Owner

jorgelbg commented Aug 5, 2022

Happy to hear that it is working!🎉

pinentry-touchid should've been able to persist the password in the keychain even without the "Save in keychain" option in pinentry-mac. Curious why it didn't work 🤔. Would you mind sharing the logs from $TMPDIR/pinentry-touchid.log?

@inakiabt
Copy link

inakiabt commented Aug 5, 2022

Since I wasn't seeing the "Save in keychain" option I didn't save my passphrase and then try pinentry-touchid 😅
I lost the logs at some point.

I'm automating this setup for my "dotfiles" setup, so I will try it in virtual machine I'm using to see if I can reproduce it and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants