Skip to content

Commit

Permalink
Add SAN as example for reuse of certificates with different hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur authored and vmcj committed Oct 29, 2023
1 parent 524d16a commit 076730b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions provision-contest/ansible/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 076730b

Please sign in to comment.