| 1 |
## Import the keys |
| 2 |
|
| 3 |
I have two keys, a personal one and a project one, on *keys.openpgp.org*. |
| 4 |
At the end of this doc is a pic of me holding up these keys handwritten |
| 5 |
on a notepad. If you need more trust than that, get in touch. |
| 6 |
|
| 7 |
% gpg --keyserver keys.openpgp.org --recv-keys 75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041 867D53B08E433DF401A06EF49A9C0FE7F64876BF |
| 8 |
|
| 9 |
If you trust these signatures, sign them with your own key. This way you |
| 10 |
avoid a local warning about verifying files with untrusted keys. Likewise, |
| 11 |
if you do not trust these keys and want to tolerate the warning, don't |
| 12 |
sign them: |
| 13 |
|
| 14 |
% gpg --sign-key 867D53B08E433DF401A06EF49A9C0FE7F64876BF |
| 15 |
% gpg --sign-key 75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041 |
| 16 |
|
| 17 |
## Verify the database |
| 18 |
|
| 19 |
I've started to sign lib/CPAN/Audit/DB.pm with [a GPG key I made for |
| 20 |
this module](https://keys.openpgp.org/vks/v1/by-fingerprint/75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041). |
| 21 |
The file *lib/CPAN/Audit/DB.pm.gpg* is the detached signature for *lib/CPAN/Audit/DB.pm*. |
| 22 |
|
| 23 |
% gpg --verify lib/CPAN/Audit/DB.pm.gpg lib/CPAN/Audit/DB.pm |
| 24 |
|
| 25 |
You may get a warning like: |
| 26 |
|
| 27 |
> gpg: WARNING: This key is not certified with a trusted signature! |
| 28 |
|
| 29 |
That means you didn't sign the keys, so your local GPG is reminding |
| 30 |
you that you don't trust them even if it can still verify the signatures. |
| 31 |
|
| 32 |
## Help others trust CPAN::Audit |
| 33 |
|
| 34 |
We can enhance this trust for *lib/CPAN/Audit/DB.pm* by including more |
| 35 |
trust in the key that signs that data. You can do this by signing the |
| 36 |
key to say that you trust it. |
| 37 |
|
| 38 |
You can sign my personal and my CPAN::Audit key with your key: |
| 39 |
|
| 40 |
% gpg --keyserver keys.openpgp.org --recv-keys 75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041 867D53B08E433DF401A06EF49A9C0FE7F64876BF |
| 41 |
% gpg --sign-key 867D53B08E433DF401A06EF49A9C0FE7F64876BF |
| 42 |
% gpg --sign-key 75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041 |
| 43 |
% gpg --output ~/pobox.signed.gpg --export --armor 867D53B08E433DF401A06EF49A9C0FE7F64876BF |
| 44 |
% gpg --output ~/bdfoy.signed.gpg --export --armor 75AAB42CBA0D7F37F0D6886DF83F8D5E878B6041 |
| 45 |
|
| 46 |
Then send those output files back to me at *[email protected]*, or |
| 47 |
some other channel that you'd like to use. I will import them into my |
| 48 |
keyring and re-export my key to the keyserver so other people will see |
| 49 |
that you signed the key. |
| 50 |
|
| 51 |
## Github Actions |
| 52 |
|
| 53 |
When I push to Github, the "gpg" workflow checks that the files signed |
| 54 |
in the repo have the right signatures. |
| 55 |
|
| 56 |
## The selfie |
| 57 |
|
| 58 |
Here's a selfie with me holding up the two key fingerprints (google |
| 59 |
images of me to see if you think this is the same person). For the |
| 60 |
more cautious (not a bad thing here), we can arrange a way to verify |
| 61 |
that these keys belong to me and you are sending them to the right |
| 62 |
place. |
| 63 |
|
| 64 |
 |