Certificate verify failed: self signed certificate
stodge opened this issue · 2 comments
stodge commented
I'm getting an exception due to a self signed certificate. I've tried all the suggestions in the various tickets here but nothing works:
from zeep import Client
from requests import Session
session = Session()
session.verify = False
client = Client(WSDL_URL)
client.transport.session.verify = False
result = client.service.callService()
The exception is:
(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:992)')))
Am I doing anything wrong or is this the correct way? Thanks
stodge commented
Of course, minutes after I posted this, and after trying a different search engine, I found something that works! Doh!
from zeep import Transport
from zeep import Client
from requests import Session
from zeep.transports import Transport
WSDL_URL = ""
session = Session()
session.verify = False
transport = Transport(session=session)
client = Client(WSDL_URL, transport=transport)
client.transport.session.verify = False
result = client.service.calLService()
stodge commented
Closing.