fixes issue #2855 where cafile is not set in HttpSocket

This pull request fixes the issue #2855 .