I am writing scripts in Python2.6 with use of pyVmomi and while using one of the connection methods:
service_instance = connect.SmartConnect(host=args.ip,
I had a similar issue with PyVmomi Client. With Python Version 2.7.9, I have solved this issue with the following line of code:
default_sslContext = ssl._create_unverified_context()
self.client = \
Client(, username=, password=,
sslContext=default_sslContext )
Note that, for this to work, you need Python 2.7.9 atleast.