gin/examples/http2
2018-08-14 09:51:56 +08:00
..
testdata [docs] add http2 example (#1000) 2017-07-10 20:03:09 -05:00
main.go chore: use http.Status* instead of hard code (#1482) 2018-08-14 09:51:56 +08:00
README.md [docs] add http2 example (#1000) 2017-07-10 20:03:09 -05:00

How to generate RSA private key and digital certificate

  1. Install Openssl

Please visit https://github.com/openssl/openssl to get pkg and install.

  1. Generate RSA private key
$ mkdir testdata
$ openssl genrsa -out ./testdata/server.key 2048
  1. Generate digital certificate
$ openssl req -new -x509 -key ./testdata/server.key -out ./testdata/server.pem -days 365