[api] Adds HTTPS SSL support