use the ssl connection if provided