]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: fix build of certificate generation example
authorChristian Himpel <chressie@googlemail.com>
Tue, 7 Dec 2010 21:14:55 +0000 (16:14 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 7 Dec 2010 21:14:55 +0000 (16:14 -0500)
R=agl1, rsc
CC=golang-dev
https://golang.org/cl/3366041

src/pkg/crypto/tls/generate_cert.go

index bdc70f1cf667795ec676ce3e315820fe79318528..2ee8073f93ea24ebd88fcf12ac661aee09eb739c 100644 (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.