summaryrefslogtreecommitdiff
path: root/ci/docker/createcert.sh
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:27:25 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:27:25 +0200
commit44df9cb92abe66cf12e887ef19e60a01461b3558 (patch)
treec24ba1580a65c681d3dba4d77cd2042803396143 /ci/docker/createcert.sh
parentee1c5a9ada755a51efa2fbf054f4382d00c70dee (diff)
Tests: Ability to add a custom server and share certificate
We also now do not have to skip verification in the test files
Diffstat (limited to 'ci/docker/createcert.sh')
-rwxr-xr-xci/docker/createcert.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/ci/docker/createcert.sh b/ci/docker/createcert.sh
new file mode 100755
index 0000000..22b0ced
--- /dev/null
+++ b/ci/docker/createcert.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+WEB_FQDN="eduvpnserver"
+
+# Create self signed cert and key
+openssl req \
+ -nodes \
+ -subj "/CN=${WEB_FQDN}" \
+ -x509 \
+ -sha256 \
+ -newkey rsa:2048 \
+ -keyout "./selfsigned/${WEB_FQDN}.key" \
+ -out "./selfsigned/${WEB_FQDN}.crt" \
+ -days 90