TLS: verification of domain in TLS certificate