I've been webscraping and for a variety of webpages certification worked well. That's why I don't understand the following problem:
That's my code:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("https://www.sportwetten.de/")
With following Error Code:
[18664:9880:0317/194904.232:ERROR:cert_issuer_source_aia.cc(34)] Error parsing cert retrieved from AIA (as DER):
ERROR: Couldn't read tbsCertificate as SEQUENCE
ERROR: Failed parsing Certificate
Thanks for you help!
This error message...
...indicates most likely an expired ca public cert in the browsers cert store.
Details
The error is defined in parse_certificate.cc:
Solution
To get rid of the certificate errors you need to add the argument
--ignore-certificate-errorsthrough an instance ofOptionsas follows:tl; dr
Chrome Root Program Policy