pyvmomi-community-samples icon indicating copy to clipboard operation
pyvmomi-community-samples copied to clipboard

How to specify a CA file to connect my vSphere?

Open lazylazyboy opened this issue 3 years ago • 0 comments

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.

lazylazyboy avatar Sep 07 '21 01:09 lazylazyboy