Check server certificate and hostname