Golang 標準庫crypto/tls裡有generate_cert.go,可以生成私鑰key.pem和證書cert.pem,host引數是必須 ... Write([]byte("This is an example server.
確定! 回上一頁