We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2995f61 commit ca34555Copy full SHA for ca34555
integration/confdir/templates/certkey.pem.tmpl
@@ -1,6 +1,8 @@
1
+{{if exists "/pki/issue/my-role/www.example.com/certificate"}}
2
{{- $certificate := getv "/pki/issue/my-role/www.example.com/certificate" -}}
3
{{- $private_key := getv "/pki/issue/my-role/www.example.com/private_key" -}}
4
{
5
"certificate": "{{ replace $certificate "\n" "\\n" -1 }}",
6
"key": "{{ replace $private_key "\n" "\\n" -1 }}"
-}
7
+}
8
+{{end}}
0 commit comments