This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Description
I am trying to connect to Credhub and seem to get an error around the CA cert being invalid.
credhub api
Error connecting to the targeted API: "Get https://<domain name>>:8844/info: x509: certificate is not valid for any names, but wanted to match <<domain name>>". Please validate your target and retry your request.
if use --skip-tls-validation, i am able to login
credhub api --skip-tls-validation
Setting the target url: https://ci.ap.innogy.com:8844/
Warning: The targeted TLS certificate has not been verified for this connection.
Warning: The --skip-tls-validation flag is deprecated. Please use --ca-cert instead.
This is after exporting all the env vars and they are there. Is there something else to do with this certificate?
While trying to setting-up the credstore values, i am getting below error.
credhub set -n /concourse/***/expo-username -v value -t ***
Get https://<<domain name>>:8844/info: x509: certificate is not valid for any names, but wanted to match <<domain name>>
Anyway to resolve it quickly.