aboutsummaryrefslogtreecommitdiff
path: root/acme.conf
blob: b7853416c8ed0d7336d1690a7f3be496098c41fa (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
# provider definitions
provider lev1 \
	directory https://acme-v01.api.letsencrypt.org/directory

provider les \
	directory https://acme-staging.api.letsencrypt.org/directory

# account definitions
account another@example.com \
	key /etc/another.key \
	provider les

account mailmaster@example.com \
	key /etc/mailmaster.key \
	provider les

# domain definitions
domain www.example.com \
	altnames { example.com, www2.example.com } \
	key /etc/ssl/private/www_example_com.key \
	cert /etc/ssl/cert/www_example_com.pem \
	webroot /var/www/htdocs \
	using another@example.com \
	gracetime 1 week \
	hook nginx


# domains with prefix www imply altname without www
domain www.example.net \
	key /etc/ssl/private/www_example_net.key \
	cert /etc/ssl/cert/www_example_net.pem \
	using another@example.com

domain mail.example.com \
	key /etc/ssl/private/mail_example_com.key \
	cert /etc/ssl/cert/mail_example_com.pem \
	using another@example.com \
	gracetime 1 week \
	hook dovecot

# hook definitions
hook nginx \
	cmd "sudo service nginx reload"

hook dovecot \
	cmd "sudo service dovecot reload"