reneboer / python-carnet-client

python script that emulated the VW WE Connect (formerly CarNet) web site
GNU General Public License v3.0
21 stars 9 forks source link

SSLError raised recently #25

Closed Sh0n closed 4 years ago

Sh0n commented 4 years ago

Hi,

Recently, i get new error when i try to use this script (it works last week !) :

raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.portal.volkswagen-we.com', port=443): Max retries exceeded with url: /portal/en_GB/web/guest/home (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))

Any idea ?

odelma commented 4 years ago

Same here 🙋‍♂️

reneboer commented 4 years ago

I posted an update that skips the certificate check. For me it works again.

odelma commented 4 years ago

Thanks, looks like it is working again :smile: Do you know if there is any way to disable these warnings: /home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning,

edit: this did the trick: from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) https://stackoverflow.com/questions/27981545/suppress-insecurerequestwarning-unverified-https-request-is-being-made-in-pytho

reneboer commented 4 years ago

The real problem is a incomplete certificate chain at the VW site side, so other than your trick I would not know.

Sh0n commented 4 years ago

Thanks a lot ! it works perfectly !