summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:49:57 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:49:57 +0200
commit9eca4b7c6b7bc6581a9a3600ef0c557df25e6167 (patch)
tree2bc980b16430bfb6edc86269e08ce7c16cabc9dd /ci
parentd566499c3c6bcb8945bc9f0253508cc273582880 (diff)
Fix: CI selfsigned path
Diffstat (limited to 'ci')
-rwxr-xr-xci/docker/createcert.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/ci/docker/createcert.sh b/ci/docker/createcert.sh
index 22b0ced..15cd8d5 100755
--- a/ci/docker/createcert.sh
+++ b/ci/docker/createcert.sh
@@ -1,4 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env bash
+# Get absolute path to current directory this script is in
+SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
WEB_FQDN="eduvpnserver"
@@ -9,6 +11,6 @@ openssl req \
-x509 \
-sha256 \
-newkey rsa:2048 \
- -keyout "./selfsigned/${WEB_FQDN}.key" \
- -out "./selfsigned/${WEB_FQDN}.crt" \
+ -keyout "${SCRIPT_DIR}/selfsigned/${WEB_FQDN}.key" \
+ -out "${SCRIPT_DIR}/selfsigned/${WEB_FQDN}.crt" \
-days 90