Check ssl certificates on a host

openssl s_client -connect your-host:443

If it says something like gethostbyname failure then try following.
It needs socat, which can be installed on macOs like this — brew install socat.
Then in one terminal open

socat TCP4-LISTEN:10443,fork TCP6:your-host:443

and in another terminal:

openssl s_client -crlf -connect 127.0.0.1:10443

LEAVE A COMMENT