Skip to content

I would like to use a certificate, but I am not sure how to do so. #2934

@ShogoDev0212

Description

@ShogoDev0212

Environment

Python: 3.10.11
SeleniumBase: 4.24.12

Description

I would like to use a certificate, but I am not sure how to do so.

Below is the sample source code. In this example, I am unable to access "https://geo.brdtest.com/mygeo.json".

from seleniumbase import Driver as MySBDriver
import ssl
import certifi

ssl_context = ssl.create_default_context(cafile=certifi.where())
ssl_context.load_verify_locations(str(Path(f"{os.path.sep.join(sys.argv[0].split(os.path.sep)[:-1])}/ca.crt")))

driver = MySBDriver(uc=True, proxy="http://brd-customer-hl_e43c514b-zone-residential_proxy3:[email protected]:22225")
driver.get("https://geo.brdtest.com/mygeo.json")

Please let me know if there are any possible remedies or ideas that may help solve this issue. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions