Skip to content

Commit

Permalink
[py] Allows setting Remote webdriver ca_certs through REQUESTS_CA_BUN…
Browse files Browse the repository at this point in the history
…DLE env variable. (#11957)
  • Loading branch information
miguelius committed Aug 14, 2023
1 parent 074e7c8 commit 17a2aa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py/selenium/webdriver/remote/remote_connection.py
Expand Up @@ -134,7 +134,7 @@ class RemoteConnection:

browser_name = None
_timeout = socket._GLOBAL_DEFAULT_TIMEOUT
_ca_certs = certifi.where()
_ca_certs = os.getenv("REQUESTS_CA_BUNDLE") if "REQUESTS_CA_BUNDLE" in os.environ else certifi.where()

@classmethod
def get_timeout(cls):
Expand Down Expand Up @@ -162,7 +162,8 @@ def reset_timeout(cls):
def get_certificate_bundle_path(cls):
"""
:Returns:
Paths of the .pem encoded certificate to verify connection to command executor
Paths of the .pem encoded certificate to verify connection to command executor. Defaults
to certifi.where() or REQUESTS_CA_BUNDLE env variable if set.
"""
return cls._ca_certs

Expand Down

0 comments on commit 17a2aa8

Please sign in to comment.