1
0
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:
Christian Himpel 2010-12-07 16:14:55 -05:00 committed by Russ Cox
parent 458ec560e7
commit 2660c2a7be

View File

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