openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650
To omit the use of a passphrase on the private key, add the following flag
-nodes
SMTP
openssl s_client -connect smtp.exmaple.com:25 -starttls smtp
openssl s_client -connect smtp.exmaple.com:587 -starttls smtp
openssl s_client -connect smtp.exmaple.com:465 smtp
Show validity range of a cert
echo -n | openssl s_client -showcerts -connect wiki.rlskeels.com:443 | openssl x509 -noout -dates
To test a connection's cert
openssl s_client --connect wiki.rlskeels.com:443