diff --git a/templates/csr.json.j2 b/templates/csr.json.j2 new file mode 100644 index 0000000..2419c3b --- /dev/null +++ b/templates/csr.json.j2 @@ -0,0 +1,6 @@ +{ + "CN": {{item.cname | to_json}}, + "hosts": {{ (item.sans|default([]) + item.altips|default([]) + item.cname.split(',')) | to_json}}, + "key" : {{item.key | default(pki_key) | to_json}}, + "names" : {{item.names | default(pki_names) | to_json}} +}