Error message is not helpful if using misconfigured self-signed certificates

Current situation

When using a self-signed certificate for the orchestrator, if the certificate chain is not set up properly (using, say, CURL_CA_BUNDLE), the error message is Could not reach https://orchestrator.example.com:443/agents, which is not helpful.

Desired outcome

A clearer error message in this case.