leonidessaguisagjr / webdriverdownloader

Python module to facilitate downloading and deploying WebDriver binaries. Currently supporting geckodriver, chromedriver and operachromiumdriver.
https://pypi.org/project/webdriverdownloader/
MIT License
20 stars 17 forks source link

CERTIFICATE_VERIFY_FAILED when downloading ChromeDriver #15

Open Unit111 opened 3 years ago

Unit111 commented 3 years ago

OS: MacOs Python version. 3.9.2 webdriverdownloader: 1.1.0.3

I receive the following when trying to download the Chrome driver: SSLError: HTTPSConnectionPool(host='www.googleapis.com', port=443): Max retries exceeded with url: /storage/v1/b/chromedriver/o/LATEST_RELEASE (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)'))) This does not happen when using Firefox.

Also, doing this on Windows does not invoke error also. Do you think it's a good idea to not verify the certificates when downloading the drivers?

I opened a PR just in case: https://github.com/leonidessaguisagjr/webdriverdownloader/pull/16

paulcalabro commented 2 years ago

@Unit111

Do you think it's a good idea to not verify the certificates when downloading the drivers?

You should verify the certificate to ensure it's signed by a trusted certificate authority. This helps prevent MitM attacks.