mirror of
https://github.com/mumble-voip/grumble.git
synced 2026-01-09 19:41:59 -08:00
Build with go tip.
This commit is contained in:
parent
739cd1ca9b
commit
71b9483e00
2 changed files with 5 additions and 3 deletions
|
|
@ -5,9 +5,11 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"big"
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
"encoding/pem"
|
||||
"log"
|
||||
"os"
|
||||
|
|
@ -21,8 +23,8 @@ import (
|
|||
func GenerateSelfSignedCert(certpath, keypath string) (err os.Error) {
|
||||
now := time.Seconds()
|
||||
tmpl := &x509.Certificate{
|
||||
SerialNumber: []byte{0},
|
||||
Subject: x509.Name{
|
||||
SerialNumber: big.NewInt(0),
|
||||
Subject: pkix.Name{
|
||||
CommonName: "Grumble Autogenerated Certificate",
|
||||
},
|
||||
NotBefore: time.SecondsToUTC(now - 300),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue