The simplest way to create a self-signed certificate with Go:
1 |
go run /usr/lib/go/src/crypto/tls/generate_cert.go -host localhost |
or ecdsa 10 years duration
1 |
go run /usr/lib/go/src/crypto/tls/generate_cert.go -duration 87600h0m0s -ecdsa-curve P256 -host localhost |
or ed25519 10 years duration
1 |
go run /usr/lib/go/src/crypto/tls/generate_cert.go -duration 87600h0m0s -ed25519 -host localhost |