From e55c9b41481003f4a3f371a863e66d163b92a19f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Tue, 28 Mar 2017 10:38:26 +0200 Subject: [PATCH] add: utility for minimal testing 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 --- manager/quick-test | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 manager/quick-test diff --git a/manager/quick-test b/manager/quick-test new file mode 100755 index 0000000..1165c4f --- /dev/null +++ b/manager/quick-test @@ -0,0 +1,12 @@ +#!/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" -- 2.39.2