Golang 标准库crypto/tls里有generate_cert.go,可以生成私钥key.pem和证书cert.pem,host参数是必须 ... Write([]byte("This is an example server.
確定! 回上一頁