Skip to content

Fix SSL: CERTIFICATE_VERIFY_FAILED when setting up RingRTC#9

Open
sharplet wants to merge 1 commit intosignalapp:mainfrom
sharplet:ring-rtc-setup-ssl
Open

Fix SSL: CERTIFICATE_VERIFY_FAILED when setting up RingRTC#9
sharplet wants to merge 1 commit intosignalapp:mainfrom
sharplet:ring-rtc-setup-ssl

Conversation

@sharplet
Copy link
Copy Markdown

@sharplet sharplet commented Mar 5, 2024

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants