-
Notifications
You must be signed in to change notification settings - Fork 98
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
password vs passphrase #34
Comments
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 Dan
|
Currently, I downgraded from GPG2 to GPG 1.4 and it seems to be working, but would love to understand how to get GPG2 to work. Thanks |
Unfortunately, you cannot pass passphrase programmatically with GPG 2.0. See #11. |
In the example below, I have tried password and passphrase. Neither seem to allow me to run my code without a openpgp box prompting for the passphrase, the following message:
Pinentry Mac
"Please enter the passphrase to unlock the secret key for the OpenPGP certificate"
What do I need to change to allow my code to run without the prompt? I know my password is correct in the code.
I have tried :
ctx = GPGME::Ctx.new :password=> 'password'
and this:
ctx = GPGME::Ctx.new :passphrase_callback => method(:passfunc)
But both do not seem to work. Any advice is appreciated.
The text was updated successfully, but these errors were encountered: