summaryrefslogtreecommitdiffstats
path: root/roles/lacme/templates/etc/lacme/lacme-certs.conf.j2
blob: 8550d0f79ca6db7f5b30c6f2c68f9456a1a31b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
hash = sha512
keyusage = digitalSignature, keyEncipherment

{% if 'IMAP' in group_names %}
[imap]
certificate-key = /etc/dovecot/ssl/imap.fripost.org.key
certificate-chain = /etc/dovecot/ssl/imap.fripost.org.pem
subject = /O=Fripost/CN=imap.fripost.org
subjectAltName = DNS:imap.fripost.org,DNS:sieve.fripost.org
notify = /usr/bin/doveadm reload
{% endif %}

{% if 'MSA' in group_names %}
[smtp]
certificate-key = /etc/postfix-{{ postfix_instance.MSA.name }}/ssl/smtp.fripost.org.key
certificate-chain = /etc/postfix-{{ postfix_instance.MSA.name }}/ssl/smtp.fripost.org.pem
subject = /O=Fripost/CN=smtp.fripost.org
notify = /bin/systemctl reload postfix
{% endif %}

{% if 'MX' in group_names %}
[mx]
certificate-key = /etc/postfix-{{ postfix_instance.MX.name }}/ssl/mx.fripost.org.key
certificate-chain = /etc/postfix-{{ postfix_instance.MX.name }}/ssl/mx.fripost.org.pem
subject = /O=Fripost/CN=mx{{ mxno }}.fripost.org
notify = /bin/systemctl reload postfix
{% endif %}

{% if 'lists' in group_names %}
[lists]
certificate-key = /etc/nginx/ssl/lists.fripost.org.key
certificate-chain = /etc/nginx/ssl/lists.fripost.org.pem
subject = /O=Fripost/CN=lists.fripost.org
notify = /bin/systemctl reload nginx
{% endif %}

{% if 'wiki' in group_names %}
[www]
certificate-key = /etc/nginx/ssl/www.fripost.org.key
certificate-chain = /etc/nginx/ssl/www.fripost.org.pem
subject = /O=Fripost/CN=fripost.org
subjectAltName = DNS:fripost.org,DNS:www.fripost.org,DNS:wiki.fripost.org
notify = /bin/systemctl reload nginx
{% endif %}

{% if 'webmail' in group_names %}
[webmail]
certificate-key = /etc/nginx/ssl/mail.fripost.org.key
certificate-chain = /etc/nginx/ssl/mail.fripost.org.pem
subject = /O=Fripost/CN=mail.fripost.org
subjectAltName = DNS:mail.fripost.org,DNS:webmail.fripost.org
notify = /bin/systemctl reload nginx
{% endif %}

{% if 'git' in group_names %}
[git]
certificate-key = /etc/nginx/ssl/git.fripost.org.key
certificate-chain = /etc/nginx/ssl/git.fripost.org.pem
subject = /O=Fripost/CN=git.fripost.org
notify = /bin/systemctl reload nginx
{% endif %}

{% if 'nextcloud' in group_names %}
[cloud]
certificate-key = /etc/nginx/ssl/cloud.fripost.org.key
certificate-chain = /etc/nginx/ssl/cloud.fripost.org.pem
subject = /O=Fripost/CN=cloud.fripost.org
subjectAltName = DNS:cloud.fripost.org,DNS:www.cloud.fripost.org
notify = /bin/systemctl reload nginx
{% endif %}

; vim:ft=dosini