Sorry, haven't had the time to investigate yet (only looked up the error code which is ERROR_INTERNET_SEC_CERT_CN_INVALID).
That would imply that the certificate checking is failing. Please get a +crypt,+chain log of the failing tests and attach to a bug for me to have a look. --Juan