Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE12
python-websocket-client
webSoc_useSystemCert.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File webSoc_useSystemCert.patch of Package python-websocket-client
--- websocket/__init__.py.orig +++ websocket/__init__.py @@ -517,8 +517,10 @@ class WebSocket(object): if is_secure: if HAVE_SSL: - sslopt = dict(cert_reqs=ssl.CERT_REQUIRED, - ca_certs=os.path.join(os.path.dirname(__file__), "cacert.pem")) + sslopt = dict(cert_reqs=ssl.CERT_REQUIRED) + certPath = os.path.join(os.path.dirname(__file__), "cacert.pem") + if os.path.isfile(certPath): + sslopt['ca_certs'] = certPath sslopt.update(self.sslopt) self.sock = ssl.wrap_socket(self.sock, **sslopt) match_hostname(self.sock.getpeercert(), hostname)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor