From 076730bdfe9fac0e3cf69a43b850615af16a4d08 Mon Sep 17 00:00:00 2001 From: Michael Vasseur Date: Mon, 16 Oct 2023 20:26:31 +0200 Subject: [PATCH] Add SAN as example for reuse of certificates with different hosts --- provision-contest/ansible/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/provision-contest/ansible/Makefile b/provision-contest/ansible/Makefile index da412b22..e4f20073 100644 --- a/provision-contest/ansible/Makefile +++ b/provision-contest/ansible/Makefile @@ -66,6 +66,7 @@ $(SSHKEY) $(SSHKEY).pub: $(SSL_DOMSERVER_FILES): openssl req -x509 -nodes -newkey rsa:4096 -subj "/O=DOMjudge/CN=domjudge" \ + -addext "subjectAltName = DNS:wf46-domjudge,DNS:wf47-domjudge,DNS:analyst" \ -sha256 -days 365 -keyout $(SSL_DOMSERVER).key -out $(SSL_DOMSERVER).crt $(SSL_LOCALHOST_FILES): openssl req -x509 -nodes -newkey rsa:4096 -subj "/O=DOMjudge/CN=localhost" \