田欧 f45c928a15 chore: use http.Status* instead of hard code (#1482) 7 years ago
..
testdata 87fdff8f88 [docs] add http2 example (#1000) 8 years ago
README.md 87fdff8f88 [docs] add http2 example (#1000) 8 years ago
main.go f45c928a15 chore: use http.Status* instead of hard code (#1482) 7 years ago

README.md

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