Files
scripts/check_sslcerts/create_sites.sh

14 lines
304 B
Bash

#!/bin/bash
domains="conet-services.de tenoc.de hosting-ffm.de bankhaus-scheich.de"
for domain in `echo $domains`
do
curl -s "https://crt.sh/?q=%25.$domain&output=json" \
| grep -oE '"name_value":"[^"]+"' \
| cut -d':' -f2 \
| tr -d '"' \
| sed 's/\\n.*//' \
| grep -v '\*' \
| sort -u
done