Troubleshooting openSSL certificates

1
$ openssl s_client -showcerts -connect somehttpdserverhostname:443

Can be different ports.