500 errors on sign in - urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
Resolved 💬 8 comments Opened Aug 11, 2025 by rhymiz Closed Aug 18, 2025
💡 Likely answer: A maintainer (seratch, member)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.20.0
Which model were you using?
_No response_
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
codex login- Follow prompts
- Authorize Codex CLI
- Redirect to localhost:1455
Error response
Error code: 500
Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1020)>.
Error code explanation: 500 - Server got itself in trouble.
What is the expected behavior?
_No response_
What do you see instead?
_No response_
Additional information
_No response_
8 Comments
I am not sure if this works for you, but checking https://github.com/openai/codex/issues/2044 may help.
@seratch thanks for sharing. Didn't work, unfortunately.
<img width="954" height="486" alt="Image" src="https://github.com/user-attachments/assets/7f3c27c8-16b5-434a-abc0-46e152d013c9" />
It still doesn't work
Re-installing codex worked in my case.
Reinstalling hasn't worked for me
I no longer have this issue in
codex-cli 0.22.0Thank you so much for checking the latest version 👍
resolved for me with latest version as well