OpenSSL

From Anthony Pastor Wiki Notes - Verba volant, scripta manent
Revision as of 15:15, 3 January 2018 by Anthoanthop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Generate a self-signed certificate without passphrase in one line

openssl req -nodes -new -x509 -keyout server.key -out server.cert -days 3650

Getting the expiration time of an SMTP certificate

SERVERNAME=mail.example.com
printf 'quit\n' | openssl s_client -connect $SERVERNAME:587 -starttls smtp | openssl x509 -enddate -noout