pinecrypt-gateway-frontend/templates/snippets/store-authority.sh

6 lines
272 B
Bash
Raw Normal View History

2021-05-27 10:15:46 +00:00
# Save CA certificate
mkdir -p /etc/certidude/authority/{{ authority.namespace }}/
test -e /etc/certidude/authority/{{ authority.namespace }}/ca_cert.pem \
|| cat << EOF > /etc/certidude/authority/{{ authority.namespace }}/ca_cert.pem
{{ authority.certificate.blob }}EOF