letsencrypt: Try and put the combined cert in the format stunnel likes

Right now it's adding the cert without a newline at the end, but it also
expects the cert to be at the top and the intermediate below it. So,
swap them around and try putting a newline in it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-01-25 09:56:31 -08:00
parent dd7cb18a31
commit 925760331c

View file

@ -139,7 +139,8 @@
- name: Install certificate bundle
copy: >
dest=/etc/pki/tls/certs/{{site_name}}.bundle.cert
content="{{certbot_chain.stdout}} {{certbot_certificate.stdout}}"
content="{{certbot_certificate.stdout}
certbot_chain.stdout}}"
owner=root
group=root
mode=0644