vadossam
11/20/2018 - 7:20 PM

lock check SSL certs

whmapi1 listcrts registered=1 user="$USERNAME" |grep -E "domain:|issuer.organizationName:"  |awk -F ": " '{print $2}' |sed '$!N;s/\n/ - /' |nl

whmapi1 listcrts registered=1 user=$KLIENT --output=json|python -c'import sys,json;map(sys.stdout.write,("%s: %s\n"%(i["domain"],i["issuer.organizationName"])for i in json.load(sys.stdin)["data"]["crt"] if i["not_after"]>'$(date +%s)' and not i["is_self_signed"]))'|nl