jorgelbg / pinentry-touchid

Custom GPG pinentry program for macOS that allows using Touch ID for fetching the password from the macOS keychain.
Apache License 2.0
521 stars 23 forks source link

pinentry-touchid cannot be configured until after you have a key #12

Closed VxJasonxV closed 2 years ago

VxJasonxV commented 2 years ago

I set up pinentry-touchid at the start of a new machine before creating a new GPG key, I was never asked for a passphrase when going through key generation and was left very confused. Only after disabling the configuration (commenting out the gpg-agent.conf configuration line) was I prompted for a GPG key passphrase.

I'm not informed enough on the particulars of GPG to offer a documentation change, but I am left feeling like it should be made clear that pinentry-touchid should only be configured after creating a new / importing an existing key, and that the key must have a passphrase, hence the whole purpose of pinentry.

jorgelbg commented 2 years ago

Good catch @VxJasonxV!

I had never tried creating a brand new GPG key while having pinentry-touchid configured in the gpg-agent.conf 😅. I will try to implement a fallback to pinentry-mac for this case, or update the documentation accordingly.

jorgelbg commented 2 years ago

@VxJasonxV This should work now, if you are willing to build from the main branch, othwerwise I'm planning on tagging a new release in the next few days.