For iid provisioners use only the csr name if custom sans is disabled.

The provisioner will validate the common name om a list of options.
pull/312/head
Mariano Cano 4 years ago
parent b11486f41f
commit 69902b0153

@ -78,10 +78,11 @@ const DefaultLeafTemplate = `{
// The keyUsage "keyEncipherment" is special and it will be only used for RSA
// keys.
const DefaultIIDLeafTemplate = `{
"subject": {{ toJson .CR.Subject }},
{{- if .SANs }}
"subject": {"commonName": "{{ .CR.Subject.CommonName }}"},
"sans": {{ toJson .SANs }},
{{- else }}
"subject": {{ toJson .CR.Subject }},
"dnsNames": {{ toJson .CR.DNSNames }},
"emailAddresses": {{ toJson .CR.EmailAddresses }},
"ipAddresses": {{ toJson .CR.IPAddresses }},

Loading…
Cancel
Save