Skip to content

Commit

Permalink
gofmt -s generate_domain_ca.go
Browse files Browse the repository at this point in the history
Reported by gci.
  • Loading branch information
Jeremy Rand committed Oct 10, 2022
1 parent 3ce8e98 commit 1163492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_domain_ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ func GenerateDomainCA(domain string, publicKeyBytes []byte, parentDERBytes []byt
template := x509.Certificate{
SerialNumber: serialNumber,
Subject: pkix.Name{
CommonName: domain + " Domain AIA Parent CA",
CommonName: domain + " Domain AIA Parent CA",
SerialNumber: "Namecoin TLS Certificate",
},
NotBefore: time.Now().Add(-1 * ValidityShortTerm()),
NotAfter: time.Now().Add(1 * ValidityShortTerm()),

IsCA: true,
//KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
KeyUsage: x509.KeyUsageCertSign,
KeyUsage: x509.KeyUsageCertSign,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
BasicConstraintsValid: true,

Expand Down

0 comments on commit 1163492

Please sign in to comment.