I am trying to invoke workflows using python but getting below SSL Certificate verify failed
Code Sample:-
from vmw.vco.client import Client
c = Client(url='https://IP:8281/vco/vmware-vmo-webcontrol/webservice?WSDL', username='vmware', password='password')
print c.echo('foo')
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
print c.echo('foo')
File "C:\Python27\lib\site-packages\vmw\vco\client.py", line 290, in echo
return self._echo(message=msg)
File "C:\Python27\lib\site-packages\vmw\vco\client.py", line 363, in _func
resp = getattr(self.service, name)(req)
File "C:\Python27\lib\site-packages\vmw\vco\generated\VSOWebControlService_client_sync.py", line 48, in echo
self.binding.Send(None, None, request, soapaction="", **kw)
File "C:\Python27\lib\site-packages\vmw\ZSI\client.py", line 291, in Send
self.h.connect()
File "C:\Python27\lib\httplib.py", line 1215, in connect
self.sock = self._context.wrap_socket(self.sock,
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)
>>>
Any idea?