Support connecting by ssl