Closed Git-Forked closed 1 month ago
In a python project I created to scrape the lotro website for new weekly codes, I had a similar issue with their SSL certificate and resolved it by:
import urllib3
urllib3.disable_warnings()
urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL'
http = urllib3.PoolManager(cert_reqs='CERT_NONE')
This will allow it to work without verifying the SSL certificate, which worked fine for my scraper, but may not be the best solution for your program, if you are relying on the SSL to send encrypted confidential information like username and password.
I missed that the addon manager is still using outdated networking code that can have this issue in the compiled builds. Will fix soon.
In a python project I created to scrape the lotro website for new weekly codes, I had a similar issue with their SSL certificate and resolved it by:
import urllib3 urllib3.disable_warnings() urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL' http = urllib3.PoolManager(cert_reqs='CERT_NONE')
This will allow it to work without verifying the SSL certificate, which worked fine for my scraper, but may not be the best solution for your program, if you are relying on the SSL to send encrypted confidential information like username and password.
Here's the code OneLauncher uses for official game server connections: https://github.com/JuneStepp/OneLauncher/blob/main/src/onelauncher/official_clients.py#L141
There's a bunch of special handling for GLS related stuff that you probably don't care about, but SSL context function I linked might work better than what you have.
In a python project I created to scrape the lotro website for new weekly codes, I had a similar issue with their SSL certificate and resolved it by:
import urllib3 urllib3.disable_warnings() urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL' http = urllib3.PoolManager(cert_reqs='CERT_NONE')
This will allow it to work without verifying the SSL certificate, which worked fine for my scraper, but may not be the best solution for your program, if you are relying on the SSL to send encrypted confidential information like username and password.
What exactly are the default ciphers you set for? Do they make a difference when you have the certificate verification disabled?
The default ciphers are set in the hopes that they will correctly work. The certificates are not "disabled", but not required to proceed.
And this line "urllib3.disable_warnings()" disables only the warnings, because in my small program I didn't need to see them. Your program may prefer to correctly handle the warnings and display to the user or be logged.
There is no network trouble. The issue seems to be with an SSL certificate and/or how the program is handling it.