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

support gpg2 kbx #17

Open
liu0013 opened this issue Nov 21, 2018 · 3 comments
Open

support gpg2 kbx #17

liu0013 opened this issue Nov 21, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@liu0013
Copy link

liu0013 commented Nov 21, 2018

I tried to use gpg2 pubring.kbx in config.yaml that does not work well, so I have to install gpg1 to add pubring.gpg into config.yaml. Can you please support gpg2 config in the future version? Thanks!

@esilva-everbridge esilva-everbridge added the enhancement New feature or request label Nov 21, 2018
@esilva-everbridge
Copy link
Contributor

I'd love to, unfortunately gpg2 did away with the readable secring.gpg file and the only gnupg2 API that can be used for accessing the secret keys that I could find is using the gpgme library. This could be done, and I did think about doing it, but it would mean using cgo and linking to the gpgme C library, which would make cross platform releases challenging. By using gpg1 I can keep this in pure Go and easily provide releases for multiple platforms.

I haven't given up on being able to use gpg2, but I have no time frame for it as of now.

@liu0013
Copy link
Author

liu0013 commented Nov 22, 2018

thanks @esilva-everbridge !

@esilva-everbridge
Copy link
Contributor

Options going forward:

  • fall back on using gpg2 binary (ugly, but could work well, even across platforms, but might make testing difficult)
  • write code to talk to gpg-agent socket to get secret keys (not well documented)
  • try to figure out how to read the kbx file format?

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

No branches or pull requests

2 participants