Checking a certificate for a domain