Rancher agent cannot connect with self-signed server cert

I have been checking similar topics but I still not find the answer.

I have rancher server running with SSL following instructions here. The self-signed certificate following this ones.

Rancher server seems to be working ok. I can access using https.

To run the agent I have copied my ca.cert in /var/lib/rancher/etc/ssl and then executed rancher agent with custom host command. But the result is:

Updating certificates in /etc/ssl/certs... 1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
...
....
INFO: Attempting to connect to: https://95.211.12.16:8080/v1
ERROR: https://95.211.12.16:8080/v1 is not accessible
ERROR: https://95.211.12.16:8080/v1 is not accessible
ERROR: https://95.211.12.16:8080/v1 is not accessible

Please, any suggestion about what could be my problem?

many thanks

Jose, I see no one got back to you here, but I think we might have the same issue you are describing in your post - Did you have resolution?

Many Thanks, Tommy