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

prefer gpg2 when possible #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

haarg
Copy link
Contributor

@haarg haarg commented Jun 3, 2022

On systems that have both 'gpg' and 'gpg2', 'gpg' will sometimes be gpg

  1. Prefer 'gpg2', which is more likely to be the newer version.

This can be important, because gpg 1 does not include the key
fingerprint when generating a signature, instead only including the key
id. This is true for all versions of gpg prior to 2.1.16. And gpg
versions 2.3.0 and newer only support the --auto-key-retrieve option
when the signature includes the fingerprint.

On systems that have both 'gpg' and 'gpg2', 'gpg' will sometimes be gpg
1. Prefer 'gpg2', which is more likely to be the newer version.

This can be important, because gpg 1 does not include the key
fingerprint when generating a signature, instead only including the key
id. This is true for all versions of gpg prior to 2.1.16. And gpg
versions 2.3.0 and newer only support the --auto-key-retrieve option
when the signature includes the fingerprint.
@timlegge timlegge self-requested a review August 28, 2024 01:57
@timlegge
Copy link
Collaborator

Looks fine - again since it been 2 years and concerns @haarg

Copy link
Collaborator

@timlegge timlegge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests fine lgtm - gpg likely default to version 2 in most case now but accepting

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

Successfully merging this pull request may close these issues.

2 participants