Use SSL for api