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
67c5445327
commit
24b6f5d63e
@ -40,7 +40,7 @@ func main() {
|
|||||||
SerialNumber: []byte{0},
|
SerialNumber: []byte{0},
|
||||||
Subject: x509.Name{
|
Subject: x509.Name{
|
||||||
CommonName: *hostName,
|
CommonName: *hostName,
|
||||||
Organization: "Acme Co",
|
Organization: []string{"Acme Co"},
|
||||||
},
|
},
|
||||||
NotBefore: time.SecondsToUTC(now - 300),
|
NotBefore: time.SecondsToUTC(now - 300),
|
||||||
NotAfter: time.SecondsToUTC(now + 60*60*24*365), // valid for 1 year.
|
NotAfter: time.SecondsToUTC(now + 60*60*24*365), // valid for 1 year.
|
||||||
|
Loading…
Reference in New Issue
Block a user