Use only the common name in iid subject..

This commit is contained in:
Mariano Cano 2020-07-15 15:44:04 -07:00
parent 8236765e9c
commit 6a09f11357

View file

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