urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
Resolved 💬 2 comments Opened Aug 8, 2025 by pakrym-oai Closed Aug 16, 2025
We are working on fully resolving this issue in the meantime you can try one of the workarounds:
On MacOS
_(by @alpha-adam)_
Run this in Terminal:
open /Applications/Python\ 3.11/Install\ Certificates.command
This installs the required root certificates that Python uses for SSL.
After that, codex login should work without SSL errors.
*nix
_(by @thelonglincoln)_
export SSL_CERT_FILE=$(python3 -m certifi)
export REQUESTS_CA_BUNDLE=$(python3 -m certifi)
before running codex login
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗