OpenSSL cryptographic toolkit.
openssl genrsa -out {{filename.key}} 2048
openssl req -new -sha256 -key {{filename.key}} -out {{filename.csr}}
openssl x509 -req -days {{days}} -in {{filename.csr}} -signkey {{filename.key}} -out {{filename.crt}}
openssl x509 -in {{filename.crt}} -noout -text
openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates
openssl s_client -connect {{host}}:{{port}} </dev/null
openssl s_client -connect {{host}}:443 -showcerts </dev/null