Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[mig client] Add support for GNUPG 2.1 #190
Currently, MIG is only compatible with GNUPG version 1.x and 2.x and looks for a secring.pgp on startup. In the GNUPG version 2.1 secring.gpg file is not used anymore and only gpg-agent is responsible for the private parts of the keys.
It will be nice to make MIG compatible with GNUPG 2.1 while maintaining the support for version 2.x and 1.x. This can be implemented either by asking gpg-agent for the keys when secring.gpg is not found or by looking for GNUPG version upfront and proceeding accordingly.
For more info about the changes in version 2.1 see:
in newer GPG the socket is no longer advertised by the environment so I suspect its not being picked up
Alternatively the standard socket path is always: /run/user/UID_HERE/gnupg/S.gpg-agent (though the go lib doesnt seem to be able to pick it up even if its provided in env GPG_AGENT_INFO)