Skip to content

Instantly share code, notes, and snippets.

@ejfox
Created June 21, 2019 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejfox/d64a7da835ef51ef67c376fdf6d0b542 to your computer and use it in GitHub Desktop.
Save ejfox/d64a7da835ef51ef67c376fdf6d0b542 to your computer and use it in GitHub Desktop.
#!/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