I'm executing the below code and I'm getting errors on the third line:
from pysphere import *
vSphereServer=VIServer()
vSphereServer.connect("192.168.212.137","root","password")
----------------------error------------------------------------------------------------
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
vSphereServer.connect("192.168.212.137", "root", "innominds")
File "build\bdist.win32\egg\pysphere\vi_server.py", line 101, in connect
request)._returnval
File "build\bdist.win32\egg\pysphere\resources\VimService_services.py", line 2112, in RetrieveServiceContent
self.binding.Send(None, None, request, soapaction="urn:vim25/5.1", **kw)
File "build\bdist.win32\egg\pysphere\ZSI\client.py", line 295, in Send
self.local.h.connect()
File "C:\Python27\lib\httplib.py", line 1216, in connect
server_hostname=server_hostname)
File "C:\Python27\lib\ssl.py", line 350, in wrap_socket
_context=self)
File "C:\Python27\lib\ssl.py", line 566, in __init__
self.do_handshake()
File "C:\Python27\lib\ssl.py", line 788, in do_handshake
self._sslobj.do_handshake()
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
-----can some one help me how to rectify this or is there a way to skip this certificate check-----------