enable api and ssl