Created
June 11, 2019 02:21
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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