Skip to content

Commit

Permalink
Make CA runtime configurable (#9)
Browse files Browse the repository at this point in the history
fixes #2
  • Loading branch information
widhalmt authored Aug 16, 2021
1 parent a143c34 commit f4b05d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
A simple role to create a CA to create certificates and deploy them to hosts.

The intended use is to create certificates you can use for connecting clients to main systems.

## Variables ##

* `ca_ca_days`: Runtime of the CA certificate (default: `3650`)
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ca_ca: false
ca_manage_openssl: true
ca_ca_dir: /opt/ca
ca_ca_days: 3650
ca_ca_password: ChangeMe

ca_country: EX
Expand Down
2 changes: 1 addition & 1 deletion tasks/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
-key {{ ca_ca_dir }}/ca.key
-passin pass:{{ ca_ca_password }}
-sha256
-days 3650
-days {{ ca_ca_days }}
-out {{ ca_ca_dir }}/ca.crt
-config {{ ca_ca_dir }}/ca.conf
args:
Expand Down

0 comments on commit f4b05d1

Please sign in to comment.