When connecting to the remote server, we should verify that the certificate is valid and matches the proper name in CommonName or DNSname.