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_

View original on GitHub ↗

8 Comments

seratch member · 11 months ago

I am not sure if this works for you, but checking https://github.com/openai/codex/issues/2044 may help.

rhymiz · 11 months ago

@seratch thanks for sharing. Didn't work, unfortunately.

arthosbraga · 11 months ago

<img width="954" height="486" alt="Image" src="https://github.com/user-attachments/assets/7f3c27c8-16b5-434a-abc0-46e152d013c9" />

It still doesn't work

Jimyung6642 · 11 months ago

Re-installing codex worked in my case.

rhymiz · 11 months ago

Reinstalling hasn't worked for me

rhymiz · 11 months ago

I no longer have this issue in codex-cli 0.22.0

seratch member · 11 months ago

Thank you so much for checking the latest version 👍

eric-vandenakker · 11 months ago

resolved for me with latest version as well