Skip to content

Instantly share code, notes, and snippets.

@timest
timest / certificate.go
Created April 2, 2018 14:32
用golang生成密钥和签名证书
package main
import (
"crypto/elliptic"
"crypto/ecdsa"
"crypto/rand"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"os"