SYSTEM_CA_CERTS is wrong Debian based OS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Fix Released
|
Low
|
Marco Ceppi |
Bug Description
Hello,
SYSTEM_CA_CERTS constant define in _browser.py is hardcoded and won't work with many OS.
It will raise following exception at SSL level.
File "/opt/python_
response, content = self._request(url, media_type=
File "/opt/python_
str(url), method=method, body=data, headers=headers)
File "/opt/python_
url, method=method, body=body, headers=headers)
File "/opt/python_
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/opt/python_
redirections, cachekey)
File "/opt/python_
(response, content) = self._conn_
File "/opt/python_
conn.connect()
File "/opt/python_
self.
File "/opt/python_
cert_
File "/opt/homebrew/
ciphers=
File "/opt/homebrew/
self._sslobj = _ssl.sslwrap(
ssl.SSLError: [Errno 185090050] _ssl.c:336: error:0B084002:x509 certificate routines:
I do not know how to do get vert file in a cross platform way. My temporary fix is the following:
if os.path.
SYSTEM_CA_CERTS = '/etc/ssl/
else:
from httplib2 import CA_CERTS as default_certs
SYSTEM_CA_CERTS = default_certs
Regards
Nicolas
Changed in lazr.restfulclient: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: trivial |
Changed in lazr.restfulclient: | |
assignee: | nobody → Marco Ceppi (marcoceppi) |
status: | Triaged → Fix Committed |
milestone: | none → 0.13.3 |
Changed in lazr.restfulclient: | |
status: | Fix Committed → Fix Released |