pyvmomi-community-samples
pyvmomi-community-samples copied to clipboard
How to specify a CA file to connect my vSphere?
Hello,
I cannot find any samples in the repo using CA file, most of them use 'disableSslCertValidation'. Can anyone kindly tell me how to specify a CA for HTTPS to connect ESXi or vCenter? I tried some params of SmartConnect such as 'certFile', 'keyFile', 'sslContext', but they seems not work well, and the traceback shew that the CA was invalid.