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:
10
10
11
11
LIBVENDORTGZ =roles/domjudge_checkout/files/lib-vendor.tgz
12
12
SSHKEY =roles/ssh/files/id_rsa
13
+ SSL_DOMSERVER =roles/ssl/files/domserver
14
+ SSL_DOMSERVER_FILES =$(addprefix $(SSL_DOMSERVER ) ,.key .crt)
13
15
SSL_LOCALHOST =roles/ssl/files/localhost
14
16
SSL_LOCALHOST_FILES =$(addprefix $(SSL_LOCALHOST ) ,.key .crt)
15
17
SSL_GRAFANA =roles/grafana/files/ssl
@@ -28,10 +30,14 @@ domserver judgehost admin grafana cds scoreboard mgmt: %: %.yml hosts group_vars
28
30
29
31
admin : $(SSL_LOCALHOST_FILES )
30
32
grafana : $(SSL_GRAFANA_FILES )
33
+ domserver : $(SSL_DOMSERVER_FILES )
31
34
32
35
$(SSHKEY ) $(SSHKEY ) .pub :
33
36
ssh-keygen -t rsa -f $(SSHKEY ) -P ' '
34
37
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
35
41
$(SSL_LOCALHOST_FILES ) :
36
42
openssl req -x509 -nodes -newkey rsa:4096 -subj " /O=DOMjudge/CN=localhost" \
37
43
-sha256 -days 365 -keyout $(SSL_LOCALHOST ) .key -out $(SSL_LOCALHOST ) .crt
44
50
45
51
distclean : clean
46
52
rm -f $(SSHKEY ) $(SSHKEY ) .pub
53
+ rm -f $(SSL_DOMSERVER_FILES )
47
54
rm -f $(SSL_LOCALHOST_FILES )
48
55
rm -f $(SSL_GRAFANA_FILES )
49
56
You can’t perform that action at this time.
0 commit comments