Make Rest client use ssl connection