From 591c48a6903bbf324361610f81c628302cae7049 Mon Sep 17 00:00:00 2001 From: jahoti Date: Sat, 4 Sep 2021 00:00:00 +0000 Subject: Make test suite mildly usable Allow test/server.py to be run as a command and add some "webpages" for it. --- test/init.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 test/init.sh (limited to 'test/init.sh') diff --git a/test/init.sh b/test/init.sh old mode 100644 new mode 100755 index 915db76..c0e7647 --- a/test/init.sh +++ b/test/init.sh @@ -7,6 +7,10 @@ # Initialize the root certificate for the tests proxy server # Make sure this is run in the directory where they will be put! + +if [ -n "$1" ]; then + cd "$1" +fi openssl genrsa -out ca.key 2048 openssl genrsa -out cert.key 2048 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/CN=Hachette Test" -- cgit v1.2.3