use ssl as a preference