Switch api to use SSL