Workaround for 2.2 HttpClient certificate problem