HUB-275 : Added https endpoints supports (and ssl bug fixes)