Self-signed SSL certificate
Updated at by ospiFollowing will output example.com.key
and example.com.crt
files. RSA key length is 8192 bits (rsa:8192
), expiration set to ~100 years (-days 36500
) and a sha256 fingerprint (-sha256
).
(cn="example.com" ; openssl req -new -newkey rsa:8192 -sha256 -days 36500 -nodes -x509 -keyout "${cn}.key" -out "${cn}.crt" -subj "/CN=${cn}")