Add SSL support for API