-
-
Notifications
You must be signed in to change notification settings - Fork 241
Description
RHEL 8 (supported until 2029) and below, including Fedora 33 and below, do not ship an /etc/ssl/cert.pem or a hashed /etc/ssl/cert/ directory, so our build of OpenSSL does not pick up platform certs. It would be nice if we patched our Linux build to look at /etc/pki/tls/cert.pem instead, if that file exists and /etc/ssl/cert.pem does not. Preferably this should be in OpenSSL, but if that's gnarly we can probably get away making this change in the _ssl stdlib module.
You can test this with the redhat/ubi8 or fedora:33 Docker images, and something like import urllib.request; urllib.request.urlopen("https://astral.sh").
See astral-sh/uv#16703 and https://bugzilla.redhat.com/show_bug.cgi?id=1053882 for more discussion. (I also saw something somewhere about p11-kit having an OpenSSL engine or provider plugin to load the certs from the proper place in the proper way, which we could explore, but seems much more fragile, and would probably also involve figuring out where and how to find the plugin.)