Dan Sketcher

Results 18 comments of Dan Sketcher

Can you provide a script to replicate, including initialization of the lib? For example, do you have a line like GPGME::Engine.set_info(GPGME::PROTOCOL_OpenPGP, bin_path, home_dir) ? Cheers Dan On Fri, Jun 6,...

Can you try using the GPGME::Engine.set_info method? The only time I can seem to get that error is if the engine is not present, so perhaps the config isn't set...

I found no way of alleviating that problem - when using GPGME headless with GnuPG 2.x IIRC I would always have to use the gpg-agent, because otherwise the pinentry application...

No problem Note as well that that last param is the home dir so in Rails apps I do something like this: ``` ruby home_dir = Rails.root.join('config', 'keys', Rails.env.to_s).to_s bin...

Oh and while we're on weird errors, I'll put it here so that it's at least somewhere.... If after generating keys you get a `GPGME::Error::General` on crypt ops it might...

In my experience you need to use GPG 1.x to not have to pin entry program activate. It's a feature of GPG 2 to force the pinentry program This probably...

Incidentally, changing https://github.com/sgonyea/ruby-gpgme/blob/ffi_ify/lib/gpgme/ffi.rb Line 10 from: ffi_lib "gpgme" to: ffi_lib "#{File.expand_path("../../../", **FILE**)}/ext/gpgme/gpgme_n.bundle" seems to do the trick...