winhttp: Check the certificate in an https connection using the crypto api.