Open jleavers opened 2 years ago
vcd login has the options: -i, --no-verify-ssl-certs Verify SSL certificates -w, --disable-warnings Do not display warnings when not verifying SSL certificates
Did you already try these options?
Yes, as using -i sets verify to false in ~/.vcd-cli/profiles.yaml. While this works it would be better to specify a trusted certificate or certificate bundle as opposed to disabling certificate validation, especially as in this scenario the certificate is already trusted by the OS and by CSE.
Describe the bug
I am trying to use the vcd-cli from an Ubuntu server to connect to a vCD that has a certificate signed by an internal CA.
I am also using the CSE, and to enable SSL verification for this I had to proceed as follows:
At this point I am able to curl https://vcd-fqdn without an error. However, as Python uses its own embedded certificate bundle I had to override this with an environment variable.
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
At this point the CSE works with certificate verification enabled, with no problems. However - I am still having some problems with the vcd-cli.
Some commands work:
But some do not:
How should vcd-cli be supplied with a trusted internal CA? Or - is the only solution to set verify: to false in ~/.vcd-cli/profiles.yaml?
Reproduction steps
Expected behavior
There should be a way of providing vcd-cli with a CA certificate.
Additional context
No response