FAQ

Generate self-signed certificate

golang
go run $GOROOT/src/crypto/tls/generate_cert.go --ecdsa-curve P256 --host 127.0.0.1,::1,localhost --ca --start-date "Jan 1 00:00:00 1970" --duration=2243000h
bash

openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name secp384r1) -keyout key.pem -out cert.pem -days 36500 -subj "/CN=DEFAULT CERT" -extensions SAN -config <(cat /etc/ssl/openssl.cnf; printf "[SAN]\nsubjectAltName=DNS:localhost,IP:127.0.0.1")