Created
August 18, 2022 12:17
-
-
Save Anarbb/0de0d4ad02faffc2391ae35e68a453f7 to your computer and use it in GitHub Desktop.
A quick script I made to check all the key-servers, Add this to your /usr/bin
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 | |
key_servers=("ha.pool.sks-keyservers.net" "hkp://p80.pool.sks-keyservers.net:80" "keyserver.ubuntu.com" "hkp://keyserver.ubuntu.com:80" "pgp.mit.edu") | |
for key_server in ${key_servers[@]}; do | |
echo "[+] Start checking ${key_server}..." | |
gpg --keyserver "${key_server}" --recv-keys ${1} && break || echo "[+] Trying new server..." | |
done |
Author
Anarbb
commented
Aug 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment