Revert "Properly support certificate validation if a HTTP proxy is used"

This reverts commit c79b8fcb3e9db22ac5b4c558a8ed7a3d68f3eb80.