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

Key generation fails on GnuPG >=2.1 #2

Closed
satta opened this issue Oct 24, 2016 · 4 comments
Closed

Key generation fails on GnuPG >=2.1 #2

satta opened this issue Oct 24, 2016 · 4 comments
Assignees
Labels

Comments

@satta
Copy link

satta commented Oct 24, 2016

According to https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html, the following change has been made in newer GnuPG versions:

For GnuPG versions prior to 2.1, both control statements must be given. For GnuPG 2.1 and later ‘%secring’ is a no-op.

That means that in setups using these versions gpg_server_key_private.key is no longer present and hence the server key generation script fails.

@satta satta changed the title Key generation on GnuPG >=2.1 Key generation fails on GnuPG >=2.1 Oct 24, 2016
@stripthis
Copy link
Member

Hi @satta, thank you for reporting this issue, we'll have a look. ref. PASSBOLT-1730

@stripthis stripthis added the bug label Oct 25, 2016
@stripthis stripthis assigned stripthis and kevinmuller and unassigned stripthis Oct 25, 2016
@satta
Copy link
Author

satta commented Oct 25, 2016

Thanks! In the meantime will try to manually fetch the private key from the user's ~/.gnupg and go from there.

@stripthis
Copy link
Member

Currently "php-gnupg" supports only gnupg version 1 and the version 2 is not currently supported. It should be fixed in the extension version 1.5.
see. https://github.com/php-gnupg/php-gnupg

@rguillome
Copy link

rguillome commented Mar 20, 2017

Hi all,
I'd try with --secret-keyring on the command line, and same result : while public key can be generated by batch, secret key can't with GnuPG >=2.1,

@dlen dlen closed this as completed Apr 27, 2017
dlen added a commit that referenced this issue Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants