vmware / vmware/pyvmomi

Template for using SoapStubAdapter with https protocol

Open
#922 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the SoapStubAdapter entry point and review the reported Python 2.7.5 usage with certFile, certKeyFile, and the HTTPS vCenter URL. Document a minimal HTTPS certificate-and-key template that addresses the reported certificate verification failure, with completion shown by a clear working example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.