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

encrypting with a certain key raises InvalidValue #114

Open
luto opened this issue Apr 4, 2018 · 4 comments
Open

encrypting with a certain key raises InvalidValue #114

luto opened this issue Apr 4, 2018 · 4 comments

Comments

@luto
Copy link

luto commented Apr 4, 2018

$ ruby test.rb
["[email protected]", "[email protected]"]
Traceback (most recent call last):
	5: from test.rb:88:in `<main>'
	4: from test.rb:12:in `doit'
	3: from /home/luto/.gem/ruby/2.5.0/gems/gpgme-2.0.16/lib/gpgme/crypto.rb:90:in `encrypt'
	2: from /home/luto/.gem/ruby/2.5.0/gems/gpgme-2.0.16/lib/gpgme/ctx.rb:79:in `new'
	1: from /home/luto/.gem/ruby/2.5.0/gems/gpgme-2.0.16/lib/gpgme/crypto.rb:99:in `block in encrypt'
/home/luto/.gem/ruby/2.5.0/gems/gpgme-2.0.16/lib/gpgme/ctx.rb:488:in `encrypt': Invalid value (GPGME::Error::InvalidValue)

https://gist.github.com/luto/1d60390d21e68a8adf0dd7b3f2900f68

Using my public key to encrypt a simple string causes gpgme to raise an InvalidValue error. It works fine using the key of my employer. Using my key also works fine on the gpg command line and I am able to receive and decrypt mail with it.

Sadly I am kind of lost on how to debug this.. any tips? Thank you very much!

@vtellier
Copy link

Hello @luto,
Did you find any workaround this issue?
I'm facing the same case.
Thanks!

@luto
Copy link
Author

luto commented Aug 11, 2021 via email

@sachinswaghel
Copy link

Me too facing same issue on versions 2.0.23 and 2.0.24
@luto , @vtellier @benburkert @ariejan @zed-0xff Any updates?

@luto
Copy link
Author

luto commented Apr 12, 2024

@sachinswaghel don't mention random people on github. Just post in the issue, people who are watching will be notified even if you don't mention them.

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

No branches or pull requests

3 participants