mirror of
https://github.com/golang/go
synced 2024-11-20 09:34:52 -07:00
crypto/tls: fix build of certificate generation example
R=agl1, rsc CC=golang-dev https://golang.org/cl/3366041
This commit is contained in:
parent
458ec560e7
commit
2660c2a7be
@ -40,7 +40,7 @@ func main() {
|
||||
SerialNumber: []byte{0},
|
||||
Subject: x509.Name{
|
||||
CommonName: *hostName,
|
||||
Organization: "Acme Co",
|
||||
Organization: []string{"Acme Co"},
|
||||
},
|
||||
NotBefore: time.SecondsToUTC(now - 300),
|
||||
NotAfter: time.SecondsToUTC(now + 60*60*24*365), // valid for 1 year.
|
||||
|
Loading…
Reference in New Issue
Block a user