1
1
# Let’s encrypt/acme-tiny role for Ansible
2
2
3
- Installs and configures [ acme-tiny ] ( https://github.com/diafygi/acme-tiny ) , a small Python -based client for
3
+ Installs and configures [ dehydrated ] ( https://github.com/lukas2511/dehydrated ) , a small Shell -based client for
4
4
[ Let’s encrypt] ( https://letsencrypt.org ) .
5
5
6
- It automates the following tasks:
7
-
8
- * creating an account key for Let’s encrypt
9
- * creating private keys and Certificate Signature Requests (CSR) for hosts
10
- * configuring a cron job that automatically renews the certificates after 60 days
6
+ This role historically used acme-tiny, a Python-based implementation of the ACME protocol. As this client was too
7
+ limited in functionality, we switched over to dehydrated in april 2017.
11
8
12
9
During each role run, the certificate renewal script is also executed (as with the cron job), to ensure you get new
13
10
certificates as soon as you have configured them.
14
11
12
+ ** IMPORTANT:** This package is currently in the transition from acme-tiny to dehydrated. Use with caution and always
13
+ manually verify if everything worked ok!
14
+
15
15
16
16
## Requirements
17
17
18
18
For every hostname you want to support, you need to have a webserver configured and add an alias that points to the
19
- directory configured with ` acme_tiny_challenges_directory ` . For Apache, such an alias should look like this:
19
+ directory configured with ` dehydrated_challenges_directory ` . For Apache, such an alias should look like this:
20
20
21
- Alias "/.well-known/acme-challenge" "{{ acme_tiny_challenges_directory }}"
21
+ Alias "/.well-known/acme-challenge" "{{ dehydrated_challenges_directory }}"
22
22
23
23
Hint: You can also put this into a global variable and then use this variable in the definition of every vHost.
24
24
@@ -42,9 +42,9 @@ When you use Letencrypt on multiple servers, it may be simpler to have only one
42
42
43
43
You might want to adjust these variables that control where the software and data are located:
44
44
45
- * ` acme_tiny_software_directory ` : The location to which acme-tiny is cloned
46
- * ` acme_tiny_data_directory ` : The location where the account key and certificate signature requests (CSR ) are placed
47
- * ` acme_tiny_challenges_directory ` : The (web-reachable) directory that contains the temporary challenges used for
45
+ * ` dehydrated_software_directory ` : The location to which dehydrated is cloned
46
+ * ` dehydrated_base_directory ` : The location where the configuration, account key(s) and the certificate list (domains.txt ) are placed
47
+ * ` dehydrated_challenges_directory ` : The (web-reachable) directory that contains the temporary challenges used for
48
48
verifying your domain ownership
49
49
* ` letsencrypt_intermediate_cert_path ` : the path to which the intermediate certificate of Let’s encrypt will be
50
50
downloaded.
0 commit comments