Improve SSL errors when accessing Jenkins.

- If not trusting certificate, make the hostname the same.
- If trusting the certificate, trust it as a root cert so the CA cert isn't required

[#48463687]