Skip to content

Instantly share code, notes, and snippets.

@ejfox ejfox/verify-pgp.sh
Created Jun 21, 2019

Embed
What would you like to do?
#!/bin/bash
# Confirm all publicly-posted PGP fingerprints match
# Fingerprint: 5D30 A33E 08E3 5B89 15B4 C7E2 E207 8E65 3FE3 89CD
curl https://github.com/ejfox.gpg | gpg --with-colons --import-options import-show --dry-run --import >> fp.txt
curl https://ejfox.com/pgp.txt | gpg --with-colons --import-options import-show --dry-run --import >> fp.txt
curl https://keybase.io/ejfox/pgp_keys.asc | gpg --with-colons --import-options import-show --dry-run --import >> fp.txt
# Look for the last 4 chars of expected fingerprint
grep 89CD fp.txt
# Should return 3 matching responses that look like
# fpr:::::::::5D30A33E08E35B8915B4C7E2E2078E653FE389CD:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.