pinecrypt-gateway-frontend/templates/snippets/store-authority.sh
2021-05-27 13:15:46 +03:00

6 lines
272 B
Bash

# 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