Added SSL support for API calls to unterusted-selfsigned certs