Home · Latest · Trends  /  Security
0

Check ssl certificate for start and expire dates

rated 0 times [  0] [ 0]  / comments: 0 / hits: 520  / 3 yaers ago, thu, feb 23, 2017, 09:20:07
echo | openssl s_client -connect host:port 2>/dev/null | openssl x509 -noout -startdate -enddate

# Example:
echo | openssl s_client -connect www.linuxos.pro:443 2>/dev/null | openssl x509 -noout -startdate -enddate
notBefore=Feb 13 18:15:00 2017 GMT
notAfter=May 14 18:15:00 2017 GMT
More From » Security
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Sponsor
Posted
rob

rob

Member since Feb 22, 2017
Total Code Snippets: 127
Total Comments: 1
Location: n/a
Following
User not following anyone yet.
rob snippets
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017
3 yaers ago, wed, feb 22, 2017