-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support selecting key if more than one secret key exists #6
Comments
As far as I understand GPG, you use the public key of the recipients to encrypt something, not with your secret key. Your secret key is used to decrypt a message which someone else has encrypted with your public key. Can you supply some more information about this problem you are having, I suspect it might be something to do with the public keys in your keyring. |
Hello I have exactly the same issue, I have 2 valid encryption subkeys in my GPG key (and 3 non-valid encryption subkeys).
I've configured Looking at the debug log (GPGME_DEBUG=9), i can see that gpgme (or hiera-eyaml-gpg, I really don't know) first list all the keys associated with the recipient is passed
that resolves to the ID of my master key, which afterwards is used to encrypt the message
then it fails (fails in the sense is not encrypted with the key i want it to be encrypted) because gpg now chooses whatever subkey it wants from my key instead of the configured ones Maybe instead of using the first key let me know if i can help testing or providing more information, thanks for the backend :) EDIT: typo |
I have two GPG secret keys in my keyring.
I think the wrong one is listed first, so any 'encrypt' operations result in this:
I'm running Ruby 1.8 (for Puppet 2.7.x compatibility) on Arch Linux, with the following gems installed:
The text was updated successfully, but these errors were encountered: