skodaconnect / myskoda

Python library for interacting with MySkoda APIs.
MIT License
9 stars 22 forks source link

ClientConnectorCertificateError when running myskoda gen-fixtures on Windows #104

Closed reharmsen closed 1 month ago

reharmsen commented 1 month ago

I tried running the myskoda gen-fixtures on my Windows machine after installing Python (version 3.13) and myskoda (version 0.8.1). Unfortunalty this gives a ClientConnectorCertificateError

aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host identity.vwgroup.io:443 ssl:True [SSLCertVerificationError: (5, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1020)')] 2024-10-16 20:11:12 NB0781 asyncio[27264] ERROR Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x0000022A5DA91400>

I am wondering if this is a myskoda or a general Python issue... And if this is to be fixed with not much effort

WebSpider commented 1 month ago

This is a general Windows issue, which I think a quick search on stackoverflow can help solve. The issue here is, that Windows for some reason does not trust the certificate served by the authentication server of Skoda/Volkswagen

reharmsen commented 1 month ago

Yeah.... My browser (Edge) does not have any issues with the certififcate for identity.vwgroup.io I tried something with certifi to add the certificate to the Python store, but also that did not help.

Will ook into this some more in hope to get this fixed locally.

reharmsen commented 1 month ago

It seems my 'fix' with certifi did the job.. but I had to restart/reboot my system as well. I will close this issue