diff options
Diffstat (limited to 'test/init.sh')
-rwxr-xr-x[-rw-r--r--] | test/init.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/init.sh b/test/init.sh index 915db76..c0e7647 100644..100755 --- 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" |