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

How to verify the GPG signature? #31

Closed
cajus opened this issue Oct 25, 2021 · 2 comments
Closed

How to verify the GPG signature? #31

cajus opened this issue Oct 25, 2021 · 2 comments

Comments

@cajus
Copy link

cajus commented Oct 25, 2021

Hi, sorry for stupid non pcre2 questions here ;-)

In the releases, there's a .sig file where I can find a verification signature for the tar-balls. Trying to verify it failed until now, because I'm unable to find an importable key for it yet. GPG itself claims

gpg: key 4AEE18F83AFDEB23: new key but contains no user ID - skipped

for a random keyserver I tried. Loading the key from github tells me:

$ curl https://github.com/PhilipHazel.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
Note: This user hasn't uploaded any GPG keys.


=twTO
-----END PGP PUBLIC KEY BLOCK-----%

which seems odd, because you've verified commits and signed tar-balls. Any hints?

@PhilipHazel
Copy link
Collaborator

I'm a newbie to both Git and GitHub; I didn't know you could upload GPG keys - I guess I should research that. I created and signed the tarballs on my own computer, then uploaded the files to GitHub. My public key does still seem to be on at least one keyserver:

$ gpg --keyserver keyserver.ubuntu.com --search-keys philip.hazel
gpg: data source: http://162.213.33.8:11371
(1) Philip Hazel Philip.Hazel@gmail.com
Philip Hazel ph10@hermes.cam.ac.uk
Philip Hazel ph10@cam.ac.uk
Philip Hazel ph10@cus.cam.ac.uk
2048 bit RSA key 9766E084FB0F43D8, created: 2002-10-21

I hope that helps.

@cajus
Copy link
Author

cajus commented Oct 25, 2021

Hi, thanks - I finally got it. Trying to import from the ubuntu keyserver results in gpg: key 4AEE18F83AFDEB23: new key but contains no user ID - skipped and the import is not possible. I didn't dig deeper into that, maybe it's because of stricter policies for certain servers. I've used another one:

$ curl https://github.com/web-flow.gpg | gpg --import
<snip>
$ gpg --keyserver hkps://pgp.surf.nl --recv-keys 45F68D54BBE23FB3039B
<snip>
$ LANG=C gpg --verify pcre2-10.38.tar.gz.sig pcre2-10.38.tar.gz
gpg: Signature made Fri Oct  1 17:42:07 2021 CEST
gpg:                using RSA key 45F68D54BBE23FB3039B46E59766E084FB0F43D8
gpg: Good signature from "Philip Hazel <ph10@hermes.cam.ac.uk>" [unknown]
gpg:                 aka "Philip Hazel <ph10@cam.ac.uk>" [unknown]
gpg:                 aka "Philip Hazel <ph10@cus.cam.ac.uk>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 45F6 8D54 BBE2 3FB3 039B  46E5 9766 E084 FB0F 43D8

So that's woring now.

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

No branches or pull requests

2 participants