2017-08-06 09:55:42 +00:00
|
|
|
# TLS certificate description
|
|
|
|
|
|
|
|
## local.crt / local.key
|
|
|
|
|
|
|
|
Generate with
|
2022-07-18 10:22:08 +00:00
|
|
|
|
2017-08-06 09:55:42 +00:00
|
|
|
```bash
|
|
|
|
go run $GOROOT/src/crypto/tls/generate_cert.go --rsa-bits 1024 --host 127.0.0.1,::1,localhost --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h
|
|
|
|
mv cert.pem local.cert
|
|
|
|
mv key.pem local.key
|
|
|
|
```
|