mkdir -p .well-known/pki-validation; cd .well-known/pki-validation; read -rep "What is the domain? " dom; read -rep "What is the MD5? " md; read -ep "What is the SHA? " sha; read -rep "What is the uniqe I.D.? " uid; echo $sha > $md.txt && echo "comodoca.com" >> $md.txt && echo $uid >> $md.txt; status=$(curl -Lw '%{http_code}' -s -o /dev/null -I $dom/.well-known/pki-validation/$md.txt); echo; if [[ "$status" == "200" ]]; then echo -e "\033[0;32mThe DCV file can be reached\033[0m"; else echo -e "\033[0;31mSomething is blocking validation\033[0m"; fi; echo; echo -e "\033[0;35mFile contents:\033[0m"; cat $md.txt;