Skip to content

prefer gpg2 when possible#33

Open
haarg wants to merge 1 commit into
audreyt:masterfrom
haarg:prefer-gpg2
Open

prefer gpg2 when possible#33
haarg wants to merge 1 commit into
audreyt:masterfrom
haarg:prefer-gpg2

Conversation

@haarg

@haarg haarg commented Jun 3, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

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

@timlegge timlegge left a comment

Copy link
Copy Markdown
Collaborator

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