Install newest Caddy version with role nvjacobo.caddy and update template and pre-generated certs
This commit will also allow Caddy to properly generate certs with longer lifetimes than 12 hours, and by default it has been set to 1 month
This commit is contained in:
parent
733c3ed250
commit
292c7b5887
8 changed files with 38 additions and 35 deletions
10
README.MD
10
README.MD
|
|
@ -1,7 +1,9 @@
|
|||
# Kifi Caddy
|
||||
|
||||
Installs and configures Caddy for use as a local ACME CA server allowing certificates to be issued in testing.
|
||||
This role should function as of now, but for example certificate lifetime changes don't work (defaults to 12h).
|
||||
By default, the Caddyfile defaults to 1 month for the leaf certificates and 1 year for the intermediate certificate.
|
||||
Pre-generated certificates can be found in `files/certs`, but you can also generate your own ones by using this role while the directory is empty, and then copy-pasting them from the VM to this directory.
|
||||
This is for mostly convenience, as multiple VM's might use this role so you only need to import the `root.crt` to your browser once.
|
||||
|
||||
## Example usage
|
||||
|
||||
|
|
@ -41,4 +43,8 @@ tasks:
|
|||
```
|
||||
|
||||
Note that the domains get looped over, so you can have multiple of them.
|
||||
Certificates for domains can be found in the folder /etc/letsencrypt/live/domainname though it might be wise to change this
|
||||
Certificates for domains can be found in the folder /etc/letsencrypt/live/domainname though it might be wise to change this
|
||||
|
||||
# Dependencies
|
||||
|
||||
[nvjacobo.caddy](https://github.com/nvjacobo/caddy.git) - Used for installing Caddy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue