[Bug 39125] New: Connecting to a HTTPS server with has an invalid certificate fails