Skip to content

Instantly share code, notes, and snippets.

@mattrude
Created June 11, 2019 02:21
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 mattrude/6c31d900f5f17dc86f564917e4578b29 to your computer and use it in GitHub Desktop.
Save mattrude/6c31d900f5f17dc86f564917e4578b29 to your computer and use it in GitHub Desktop.
A simple script that test if an address has a working GnuPG; DANE, PKA and WKD lookup key.
#!/bin/bash
Email=${1}
echo ""
echo "#############################################"
echo "Running for ${Email}"
for TEST in dane pka wkd
do
rm -f /tmp/test.gpg
echo ""
echo " - Starting the ${TEST} test"
echo "Test message" |gpg --trust-model always --no-default-keyring --keyring /tmp/test.gpg --auto-key-locate ${TEST} -ear ${Email} > /dev/null
done
rm -f /tmp/test.gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment