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:1028)>. Error code explanation: 500 - Server got itself in trouble.
Resolved 💬 13 comments Opened Aug 5, 2025 by kundeng Closed Nov 2, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
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:1028)>. Error code explanation: 500 - Server got itself in trouble.
Which model were you using?
_No response_
What platform is your computer?
_No response_
What steps can reproduce the bug?
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:1028)>.
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_
13 Comments
Same issue.
<img width="1306" height="462" alt="Image" src="https://github.com/user-attachments/assets/dbb488a9-17dd-402b-a406-45794beb8c89" />
same here, can't login with my chatGPT
same here
#1951
same
Same. Very bad :(
Same, very bad I paid for something I can't use...
+1
+1
https://github.com/openai/codex/issues/1951#issuecomment-3165404122
This method solved the problem. It seems that the cause was not a bug, but rather that the CA root certificates maintained by the execution environment were outdated.
that works thanks!
On Wed, Aug 13, 2025 at 11:08 AM ktyubeshi @.***> wrote:
Solved by upgrading cerfifi on my macOS 15
I think this issue is no longer relevant. The CLI no longer relies on the local Python install.