summaryrefslogtreecommitdiff
path: root/ci/docker/createcert.sh
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:56:45 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 16:56:45 +0200
commitff93737084fb6178fdab4ca4ec62e7a5a951f640 (patch)
tree53ca69d03eac4e46a062d290f0c0f8acb225adb9 /ci/docker/createcert.sh
parent9eca4b7c6b7bc6581a9a3600ef0c557df25e6167 (diff)
CI: Provide SAN in selfsigned certificate
Otherwise Go fails with `failed obtaining HTTP resource https://eduvpnserver/.well-known/vpn-user-portal with error Get "https://eduvpnserver/.well-known/vpn-user-portal": x509: certificate relies on legacy Common Name field, use SANs instead`
Diffstat (limited to 'ci/docker/createcert.sh')
-rwxr-xr-xci/docker/createcert.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ci/docker/createcert.sh b/ci/docker/createcert.sh
index 15cd8d5..1d55e6f 100755
--- a/ci/docker/createcert.sh
+++ b/ci/docker/createcert.sh
@@ -13,4 +13,5 @@ openssl req \
-newkey rsa:2048 \
-keyout "${SCRIPT_DIR}/selfsigned/${WEB_FQDN}.key" \
-out "${SCRIPT_DIR}/selfsigned/${WEB_FQDN}.crt" \
+ -addext "subjectAltName = DNS:${WEB_FQDN}" \
-days 90