leonhard-s / auraxium

A high-level Python wrapper for the PlanetSide 2 API.
https://auraxium.readthedocs.io/
MIT License
28 stars 8 forks source link

Allow unsecured connections for expired API certs #55

Closed leonhard-s closed 2 years ago

leonhard-s commented 2 years ago

The connection certs for the API server expired three times in the last few years, resulting in Auraxium not connecting at all. Since the PS2 API event stream and any fetched data are both publicly available, insecure connections are fine for most apps.

A flag should be added that falls back to insecure connections if the original certification check fails. The default behaviour will still be use use secure connections.

leonhard-s commented 2 years ago

The commit referenced above adds the no_ssl_certs flag which can be passed to the client. This will disable all SSL certification checks for WebSocket connections as a workaround for this issue.

The default configuration of the REST client seems to be fine with the expired certifications so no alteration was made - a heads-up is very much appreciated if any issues arise on the REST side of things.

leonhard-s commented 2 years ago

This fix has been carried over into master. Will close the issue once the API certifications have been fixed on DBG's side.

leonhard-s commented 2 years ago

The API's SSL certifications have been renewed. Closing issue until they expire again next year.