Hi
I had a similar issue and posted the way I found to retrieve both, the token and the ca.crt.
The relevant answer on the forum is here or here in stackoverflow.
According to the official documentation, the API URL is only https://hostname:port
without trailing slash.
Regards