From 24b6f5d63e1e5924f618bffe1c974c41033f93a9 Mon Sep 17 00:00:00 2001 From: Christian Himpel Date: Tue, 7 Dec 2010 16:14:55 -0500 Subject: [PATCH] crypto/tls: fix build of certificate generation example R=agl1, rsc CC=golang-dev https://golang.org/cl/3366041 --- generate_cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_cert.go b/generate_cert.go index bdc70f1..2ee8073 100644 --- a/generate_cert.go +++ b/generate_cert.go @@ -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.