aboutsummaryrefslogtreecommitdiff
path: root/acme.conf
blob: 7c2205cd97a938fd5cd2e51951b1e498f3c23738 (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
# 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

# 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" \
	account 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" \
	account another@example.com

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

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

hook dovecot \
	cmd "sudo service dovecot reload"