Skip to content

Commit

Permalink
crypto/tls: fix generate_cert.go
Browse files Browse the repository at this point in the history
Fixes #2030.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4635092
  • Loading branch information
agl committed Jul 6, 2011
1 parent 7b0bb48 commit 502589e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pkg/crypto/tls/generate_cert.go
Expand Up @@ -8,8 +8,10 @@
package main

import (
"crypto/rsa"
"big"
"crypto/x509/pkix"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"flag"
Expand All @@ -32,8 +34,8 @@ func main() {
now := time.Seconds()

template := x509.Certificate{
SerialNumber: []byte{0},
Subject: x509.Name{
SerialNumber: new(big.Int).SetInt64(0),
Subject: pkix.Name{
CommonName: *hostName,
Organization: []string{"Acme Co"},
},
Expand Down

0 comments on commit 502589e

Please sign in to comment.