Skip to content

Commit 0aefff2

Browse files
committed
properly install PSF_CA certificate so certbot can use it
1 parent 0dbf3ca commit 0aefff2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

salt/tls/init.sls

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,21 @@ certbot:
1717
- mode: "0644"
1818
- require:
1919
- pkg: ssl-cert
20+
21+
/usr/local/share/ca-certificates/{{ name }}.crt:
22+
file.managed:
23+
- contents_pillar: tls:ca:{{ name }}
24+
- user: root
25+
- group: ssl-cert
26+
- mode: "0644"
27+
- require:
28+
- pkg: ssl-cert
2029
{% endfor %}
2130

31+
/usr/sbin/update-ca-certificates:
32+
cmd.wait:
33+
- watch:
34+
- file: /usr/local/share/ca-certificates/*.crt
2235

2336
{% for name in salt["pillar.get"]("tls:certs", {}) %} # " Syntax Hack
2437
/etc/ssl/private/{{ name }}.pem:

0 commit comments

Comments
 (0)