forked from TrueCloudLab/certificates
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.
This commit is contained in:
parent
b11486f41f
commit
69902b0153
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue