Skip to content

Commit cb0f294

Browse files
committed
Different issuers for root and leaf
1 parent cf43f01 commit cb0f294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/certs/certs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func GenerateCerts(host string) (ca []byte, cert []byte, key []byte) {
3737
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
3838
BasicConstraintsValid: true,
3939
IsCA: true,
40-
Subject: pkix.Name{Organization: []string{"nil"}},
40+
Subject: pkix.Name{Organization: []string{"nil1"}},
4141
}
4242

4343
derBytes, err := x509.CreateCertificate(rand.Reader, &rootTemplate, &rootTemplate, &rootKey.PublicKey, rootKey)
@@ -66,7 +66,7 @@ func GenerateCerts(host string) (ca []byte, cert []byte, key []byte) {
6666
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
6767
BasicConstraintsValid: true,
6868
IsCA: false,
69-
Subject: pkix.Name{Organization: []string{"nil"}},
69+
Subject: pkix.Name{Organization: []string{"nil2"}},
7070
}
7171
hosts := strings.Split(host, ",")
7272
for _, h := range hosts {

0 commit comments

Comments
 (0)