]> WPIA git - infra.git/blob - manager/quick-test
add: utility for minimal testing
[infra.git] / manager / quick-test
1 #!/bin/bash
2 set -e
3
4 if ! [[ -f $1/config ]]; then
5     printf "Fail: config not found\n" >&2
6     exit 1
7 fi
8 source "$1/config"
9
10 wget --no-hsts -q -O root.crt http://www.$domain/roots?pem
11 wget -q --ca-certificate=root.crt https://www.$domain -O /dev/null
12 printf "Validation successful\n"