User Tools

Site Tools


Sidebar

quickreference:ssl

SSL Quick Reference

Determine expiration date of ssl cert

openssl s_client -servername SERVER -connect HOST:PORT 2>/dev/null | openssl x509 -noout -dates

SERVER - Name to check. May be an alias for HOST, or may be the same HOST - Actually who to contact. May be IP, or an DNS name. May be same as SERVER PORT - Port to connect to (ie, 465 for smtp over SSL, 443 for https)

Return something like

notBefore=Jul 20 06:54:48 2019 GMT
notAfter=Oct 18 06:54:48 2019 GMT
quickreference/ssl.txt · Last modified: 2019/08/13 02:20 by rodolico