mirror of
https://github.com/gin-gonic/gin.git
synced 2026-04-11 14:11:46 +08:00
| .. | ||
| testdata | ||
| main.go | ||
| README.md | ||
How to generate RSA private key and digital certificate
- Install Openssl
Please visit https://github.com/openssl/openssl to get pkg and install.
- Generate RSA private key
$ mkdir testdata
$ openssl genrsa -out ./testdata/server.key 2048
- Generate digital certificate
$ openssl req -new -x509 -key ./testdata/server.key -out ./testdata/server.pem -days 365