File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
py/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ class RemoteConnection:
134
134
135
135
browser_name = None
136
136
_timeout = socket ._GLOBAL_DEFAULT_TIMEOUT
137
- _ca_certs = certifi .where ()
137
+ _ca_certs = os . getenv ( "REQUESTS_CA_BUNDLE" ) if "REQUESTS_CA_BUNDLE" in os . environ else certifi .where ()
138
138
139
139
@classmethod
140
140
def get_timeout (cls ):
@@ -162,7 +162,8 @@ def reset_timeout(cls):
162
162
def get_certificate_bundle_path (cls ):
163
163
"""
164
164
:Returns:
165
- Paths of the .pem encoded certificate to verify connection to command executor
165
+ Paths of the .pem encoded certificate to verify connection to command executor. Defaults
166
+ to certifi.where() or REQUESTS_CA_BUNDLE env variable if set.
166
167
"""
167
168
return cls ._ca_certs
168
169
You can’t perform that action at this time.
0 commit comments