pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

Template for using SoapStubAdapter with https protocol

Open manikantanallagatla opened this issue 5 years ago • 0 comments

I want to use SoapStubAdapter with https to connect to my vcenter. I created a cert file and key file by using connect.SmartConnectNoSSL and extension manager.

I am getting ssl.sslerror: [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:727) with the following code: stub = SoapStubAdapter( url="https://host_ip:443/sdk/vimService", certFile=cert_file, certKeyFile=key_file)

Is there any template to use https connection using certificate key and file for SoapStubAdapter? I am using python 2.7.5 for this.

manikantanallagatla avatar Aug 21 '20 11:08 manikantanallagatla