-
Notifications
You must be signed in to change notification settings - Fork 492
Error: "Unusable Public Key" #191
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
Comments
Solution is here: #23 (comment)
|
This solution has not worked for me, my GPG key is signed and set up correctly, and even using |
Did you generate the key with gpg version >= 2.1.17? Then you would need to use |
Note that this is not necessarily related to whether the key you're using is trusted or not, it can often be due to the usage of subkeys that is configured. See this question on StackExchange. If you have a key that is qualified to sign ( Here's what the output of $ gpg -K
/home/user/.gnupg/pubring.kbx
------------------------------
sec rsa2048 2019-09-27 [SC] [expires: 2023-11-23]
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
uid [ultimate] User Name <[email protected]>
ssb rsa4096 2021-06-01 [S] [expires: 2024-11-22] Note that the subkey (the |
I am using macOS Catalina and the brew version of git-crypt (there is no -v option so I am not sure which version of git-crypt, but it is the todays
brew install git-crypt
).I have a repo without git-crypt (my .dotfiles) and I have just initialized it with
git-crypt init
and git-crypt answersGenerating key...
However, when I
git-crypt add-gpg-user [email protected]
I get:git-crypt
is finding my key (thus the fingerprint in response), but says it is "unusable".gpg --list-keys
looks good as well:A few points: that GPG key is properly signed
--lsign-key
, and has ultimate trust "5", and I am able to use that commit to my dotfiles repo using my GPG key and it shows as verified.So in all other ways my GPG key works. But I can't add myself as the first git-crypt user.
Ideas?
The text was updated successfully, but these errors were encountered: