1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:10:24 -07:00

crypto/tls: fix generate_cert.go

Fixes #2030.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4635092
This commit is contained in:
Adam Langley 2011-07-06 16:22:21 -04:00
parent 7b0bb48056
commit 502589e030

View File

@ -8,8 +8,10 @@
package main
import (
"crypto/rsa"
"big"
"crypto/x509/pkix"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"flag"
@ -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"},
},