load api over ssl