aboutsummaryrefslogtreecommitdiff
path: root/test/init.sh
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-08-06 00:00:00 +0000
committerjahoti <jahoti@tilde.team>2021-08-06 00:00:00 +0000
commit7796e55405e2c27f053122bdec25ffc06df92b4f (patch)
treec69aaa41174d6a91792515c6b227ab53c5aad3e3 /test/init.sh
parent24ad876cb3a2159baaa809b3bae5ceaccdd9223b (diff)
downloadbrowser-extension-7796e55405e2c27f053122bdec25ffc06df92b4f.tar.gz
browser-extension-7796e55405e2c27f053122bdec25ffc06df92b4f.zip
Add the beginnings of a test suite
Diffstat (limited to 'test/init.sh')
-rw-r--r--test/init.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/init.sh b/test/init.sh
new file mode 100644
index 0000000..915db76
--- /dev/null
+++ b/test/init.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Copyright (c) 2015, inaz2
+# Copyright (C) 2021 jahoti <jahoti@tilde.team>
+# Licensing information is collated in the `copyright` file
+
+# Initialize the root certificate for the tests proxy server
+# Make sure this is run in the directory where they will be put!
+
+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"