-
-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I was recently trying to build a Docker image which made use of lastversion, and ran into an issue with our internal network's security certificate. We run into this often with python and node.js utilities which do not use the system's certificate trust store. Fortunately, with Python, there is now a package, truststore which resolves this.
As a temporary workaround, I was able to get the build working on my side by editing /usr/local/lib/python3.12/site-packages/lastversion/lastversion.py
and inserting the following two lines in front of it:
import truststore
truststore.inject_into_ssl()
That said, that's not the recommended approach for a library or package. It would be really useful in the future if this was set up automatically by following the instructions at the bottom of the truststore package page to set up the SSL context at the start of your requests.