crypto/tls: fix build of certificate generation example

R=agl1, rsc
CC=golang-dev
https://golang.org/cl/3366041
This commit is contained in:
Christian Himpel 2010-12-07 16:14:55 -05:00 committed by Russ Cox
parent 67c5445327
commit 24b6f5d63e

View File

@ -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.