nginx/server: Validate certificate before installing
This commit is contained in:
parent
5f679fd659
commit
af061d0083
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
validate: /usr/bin/openssl x509 -in %s -noout
|
||||
with_first_found:
|
||||
- "/srv/letsencrypt/live/{{ site }}/fullchain.pem"
|
||||
- "/srv/ca/certs/{{ site }}.crt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue