Troubleshooting openSSL certificates

$ openssl s_client -showcerts -connect somehttpdserverhostname:443

Can be different ports.