Implement certificate creation

This commit is contained in:
adnano
2020-09-27 13:50:48 -04:00
parent e28e547bcf
commit 2eb7fb9ba4
10 changed files with 159 additions and 33 deletions

View File

@@ -1,2 +0,0 @@
client.crt
client.key

View File

@@ -59,7 +59,7 @@ func init() {
// openssl ecparam -genkey -name secp384r1 -out client.key
// openssl req -new -x509 -sha512 -key client.key -out client.crt -days 365
//
cert, err = tls.LoadX509KeyPair("examples/client/client.crt", "examples/client/client.key")
cert, err = tls.LoadX509KeyPair("examples/client/localhost.crt", "examples/client/localhost.key")
if err != nil {
log.Fatal(err)
}