check if server certificate is trusted