fixes issue #2855 where cafile is not set in HttpSocket