issue while using -pyControl with python2.7 (SSL: CERTIFICATE_VERIFY_FAILED)
While using python2.7 with pyControl, i am getting below error. After googling i have found that in python2.7 when script try to connect to LB it's try to verifiy the certifcate lb preseting and that's where it failing. Can some suggest some solution
b = pc.BIGIP( hostname = '192.168.0.54', username = 'admin', password = 'abc @123', fromurl = True, wsdls = ['LocalLB.Pool']) Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\pycontrol\pycontrol.py", line 103, in in it self.clients = self._get_clients() File "C:\Python27\lib\site-packages\pycontrol\pycontrol.py", line 145, in _get _clients sudsclient = self._get_suds_client(url,**self.kw) File "C:\Python27\lib\site-packages\pycontrol\pycontrol.py", line 190, in _get _suds_client password=self.password,doctor=DOCTOR,**kw) File "C:\Python27\lib\site-packages\suds\client.py", line 112, in init self.wsdl = reader.open(url) File "C:\Python27\lib\site-packages\suds\reader.py", line 152, in open d = self.fn(url, self.options) File "C:\Python27\lib\site-packages\suds\wsdl.py", line 136, in init d = reader.open(url) File "C:\Python27\lib\site-packages\suds\reader.py", line 79, in open d = self.download(url) File "C:\Python27\lib\site-packages\suds\reader.py", line 95, in download fp = self.options.transport.open(Request(url)) File "C:\Python27\lib\site-packages\suds\transport\https.py", line 60, in open return HttpTransport.open(self, request)
File "C:\Python27\lib\site-packages\suds\transport\http.py", line 62, in open return self.u2open(u2request) File "C:\Python27\lib\site-packages\suds\transport\http.py", line 118, in u2op en return url.open(u2request, timeout=tm) File "C:\Python27\lib\urllib2.py", line 431, in open response = self._open(req, data) File "C:\Python27\lib\urllib2.py", line 449, in _open '_open', req) File "C:\Python27\lib\urllib2.py", line 409, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 1240, in https_open context=self._context) File "C:\Python27\lib\urllib2.py", line 1197, in do_open raise URLError(err) urllib2.URLError: