Fix DNSNames not being used
This commit is contained in:
parent
2131d1e779
commit
2ed07b446d
|
@ -149,7 +149,7 @@ func generateCert(serNumber int, clientOrg string, clientCountry string,
|
|||
StreetAddress: []string{clientStreetAddr},
|
||||
PostalCode: []string{clientPostCode},
|
||||
},
|
||||
PermittedDNSDomains: []string{clientDomain},
|
||||
DNSNames: []string{clientDomain},
|
||||
NotBefore: time.Now(),
|
||||
NotAfter: time.Now().AddDate(clientNotAfter, 0, 0),
|
||||
SubjectKeyId: []byte{1, 2, 3, 4, 6},
|
||||
|
@ -208,7 +208,6 @@ func generateCert(serNumber int, clientOrg string, clientCountry string,
|
|||
Bytes: x509.MarshalPKCS1PrivateKey(certPrivKey),
|
||||
})
|
||||
|
||||
log.Printf("Generating %v/.config/")
|
||||
fmt.Printf("Generating %v/.config/cert400/clientCertificates/"+clientDomain+".key...\n", home)
|
||||
clientkey, err := os.OpenFile(home+"/.config/cert400/clientCertificates/"+clientDomain+".key", os.O_WRONLY|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue