فهرست منبع

Use only the common name in iid subject..

Mariano Cano 6 سال پیش
والد
کامیت
6a09f11357
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      x509util/templates.go

+ 1 - 2
x509util/templates.go

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