File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
provision-contest/ansible Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ default:
1010
1111LIBVENDORTGZ =roles/domjudge_checkout/files/lib-vendor.tgz
1212SSHKEY =roles/ssh/files/id_rsa
13+ SSL_DOMSERVER =roles/ssl/files/domserver
14+ SSL_DOMSERVER_FILES =$(addprefix $(SSL_DOMSERVER ) ,.key .crt)
1315SSL_LOCALHOST =roles/ssl/files/localhost
1416SSL_LOCALHOST_FILES =$(addprefix $(SSL_LOCALHOST ) ,.key .crt)
1517SSL_GRAFANA =roles/grafana/files/ssl
@@ -28,10 +30,14 @@ domserver judgehost admin grafana cds scoreboard mgmt: %: %.yml hosts group_vars
2830
2931admin : $(SSL_LOCALHOST_FILES )
3032grafana : $(SSL_GRAFANA_FILES )
33+ domserver : $(SSL_DOMSERVER_FILES )
3134
3235$(SSHKEY ) $(SSHKEY ) .pub :
3336 ssh-keygen -t rsa -f $(SSHKEY ) -P ' '
3437
38+ $(SSL_DOMSERVER_FILES ) :
39+ openssl req -x509 -nodes -newkey rsa:4096 -subj " /O=DOMjudge/CN=domjudge" \
40+ -sha256 -days 365 -keyout $(SSL_DOMSERVER ) .key -out $(SSL_DOMSERVER ) .crt
3541$(SSL_LOCALHOST_FILES ) :
3642 openssl req -x509 -nodes -newkey rsa:4096 -subj " /O=DOMjudge/CN=localhost" \
3743 -sha256 -days 365 -keyout $(SSL_LOCALHOST ) .key -out $(SSL_LOCALHOST ) .crt
4450
4551distclean : clean
4652 rm -f $(SSHKEY ) $(SSHKEY ) .pub
53+ rm -f $(SSL_DOMSERVER_FILES )
4754 rm -f $(SSL_LOCALHOST_FILES )
4855 rm -f $(SSL_GRAFANA_FILES )
4956
You can’t perform that action at this time.
0 commit comments