From 23d8c2a59c2e824ea8656f621fe9ec5b01776a3d Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Fri, 9 Dec 2016 16:21:15 -0800 Subject: [PATCH] add manual http scripts --- tests/manual-http-auth.sh | 6 ++++++ tests/manual-http-cleanup.sh | 2 ++ 2 files changed, 8 insertions(+) create mode 100755 tests/manual-http-auth.sh create mode 100755 tests/manual-http-cleanup.sh diff --git a/tests/manual-http-auth.sh b/tests/manual-http-auth.sh new file mode 100755 index 000000000..a3a0df0a7 --- /dev/null +++ b/tests/manual-http-auth.sh @@ -0,0 +1,6 @@ +#!/bin/sh +cd $(mktemp -d) +mkdir -p .well-known/acme-challenge +echo $CERTBOT_VALIDATION > ".well-known/acme-challenge/$CERTBOT_TOKEN" +python -m SimpleHTTPServer $http_01_port >/dev/null 2>&1 & +echo $! diff --git a/tests/manual-http-cleanup.sh b/tests/manual-http-cleanup.sh new file mode 100755 index 000000000..5e437bf08 --- /dev/null +++ b/tests/manual-http-cleanup.sh @@ -0,0 +1,2 @@ +#!/bin/sh +kill $CERTBOT_AUTH_OUTPUT