The script tests a finished Gigi installation
by checking if it returns any page on /.
The root certificate is downloaded from /roots?pem.
Change-Id: I91d91761b82bb2b0425cd3c2ffcc746a59db51a3
--- /dev/null
+#!/bin/bash
+set -e
+
+if ! [[ -f $1/config ]]; then
+ printf "Fail: config not found\n" >&2
+ exit 1
+fi
+source "$1/config"
+
+wget --no-hsts -q -O root.crt http://www.$domain/roots?pem
+wget -q --ca-certificate=root.crt https://www.$domain -O /dev/null
+printf "Validation successful\n"