signalapp / Signal-Pods

Pods dependency tracker for Signal-iOS
58 stars 76 forks source link

Fix SSL: CERTIFICATE_VERIFY_FAILED when setting up RingRTC #9

Open sharplet opened 8 months ago

sharplet commented 8 months ago

With system python3 on macOS 14.3.1 (Python 3.11.4), certificate verification fails for build-artifacts.signal.org. This is causing make dependencies to fail.

To correctly load the system certificate chain, urllib.request.urlopen() must be passed a properly-configured ssl.SSLContext. Using ssl.create_default_context() appears to do the correct thing by default, and should be valid in Python >= 3.4.