Welcome to mirror list, hosted at ThFree Co, Russian Federation.

manual-http-auth.sh « tests - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48c33f04bb3f11c272ef51f6c28de6b18d2a27a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
uri_path=".well-known/acme-challenge/$CERTBOT_TOKEN"

# This script should be run from the top level. e.g. ./tests/manual-http-auth.sh
source_dir="$(pwd)"
cd $(mktemp -d)
mkdir -p $(dirname $uri_path)
echo $CERTBOT_VALIDATION > $uri_path
python "$source_dir/tests/run_http_server.py" $http_01_port >/dev/null 2>&1 &
server_pid=$!
while ! curl "http://localhost:$http_01_port/$uri_path" >/dev/null 2>&1; do
    sleep 1s
done
echo $server_pid