summaryrefslogtreecommitdiffstats
path: root/Makefile-cert.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile-cert.mk')
-rw-r--r--Makefile-cert.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile-cert.mk b/Makefile-cert.mk
index d869999..b3b3ef5 100644
--- a/Makefile-cert.mk
+++ b/Makefile-cert.mk
@@ -9,13 +9,13 @@ QMAIL/control/servercert.pem:
9 PATH=$$PATH:/usr/local/ssl/bin \ 9 PATH=$$PATH:/usr/local/ssl/bin \
10 openssl req -new -x509 -nodes -days 366 -out $@ -keyout $@ 10 openssl req -new -x509 -nodes -days 366 -out $@ -keyout $@
11 chmod 640 $@ 11 chmod 640 $@
12 chown `head -2 conf-users | tail -1`:`head -1 conf-groups` $@ 12 chown `head -n 2 conf-users | tail -n -1`:`head -n 1 conf-groups` $@
13 13
14req.pem: 14req.pem:
15 PATH=$$PATH:/usr/local/ssl/bin openssl req \ 15 PATH=$$PATH:/usr/local/ssl/bin openssl req \
16 -new -nodes -out $@ -keyout QMAIL/control/servercert.pem 16 -new -nodes -out $@ -keyout QMAIL/control/servercert.pem
17 chmod 640 QMAIL/control/servercert.pem 17 chmod 640 QMAIL/control/servercert.pem
18 chown `head -2 conf-users | tail -1`:`head -1 conf-groups` QMAIL/control/servercert.pem 18 chown `head -n 2 conf-users | tail -n -1`:`head -n 1 conf-groups` QMAIL/control/servercert.pem
19 @echo 19 @echo
20 @echo "Send req.pem to your CA to obtain signed_req.pem, and do:" 20 @echo "Send req.pem to your CA to obtain signed_req.pem, and do:"
21 @echo "cat signed_req.pem >> QMAIL/control/servercert.pem" 21 @echo "cat signed_req.pem >> QMAIL/control/servercert.pem"