Check SSL server certificate contents

by Wolfram Saringer  (2018-06-15)
last change: 2018-06-15


echo | openssl s_client -showcerts -servername <server name> -connect <host name>:443 2>/dev/null | openssl x509 -inform pem -noout -text

server name is used to add SNI compatible headers to the request. host name is the name of the machine and can be the same as server name.



all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.