You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking through the documentation and I'm a big confused by this. The decrypt function is pretty straight forward and launches my pgp agent to prompt for a password and automatically chose the correct decryption key.
I'm confused about the reverse. How do I sign data with a specific key? I can run GPGME::Key.find(:secret, '4F480261701CB81FB00334017322917262CCC1E5') to find the key in my local store that I want to sign my data with. The documentation around decrypt just says you need to run Keys.import first. I tried the following:
I was getting the same error. I think it was caused by not trusting the key when it was imported (https://www.gnupg.org/gph/en/manual/x56.html). Passing the :always_trust option allows you to circumvent it.
I've been looking through the documentation and I'm a big confused by this. The
decrypt
function is pretty straight forward and launches my pgp agent to prompt for a password and automatically chose the correct decryption key.I'm confused about the reverse. How do I sign data with a specific key? I can run
GPGME::Key.find(:secret, '4F480261701CB81FB00334017322917262CCC1E5')
to find the key in my local store that I want to sign my data with. The documentation arounddecrypt
just says you need to runKeys.import
first. I tried the following:But it doesn't appear to do anything. If I run encrypt using the e-mail the key is for, I get the following:
Also, it doesn't appear that I can just use the short identifier for the key in
Key.find
, I have to use the whole thing.The text was updated successfully, but these errors were encountered: