# Cursor shows the error message: SSL: CERTIFICATE\_VERIFY\_FAILED: unable to get local issuer certificate \[internal\]

**URL:** <https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195>\
**Category:** Bug Reports\
**Tags:** terminal, cli, windows\
**Created:** [May 9, 2026, 11:56pm UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195 "2026-05-09T23:56:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_M2](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@J\_M2](https://forum.cursor.com/u/J_M2)\
**Post date:** [May 9, 2026, 11:56pm UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195/1 "2026-05-09T23:56:45Z")

</div>

### Where does the bug appear (feature/product)?

Cursor CLI

### Describe the Bug

Cursor shows the error message: SSL: CERTIFICATE\_VERIFY\_FAILED: unable to get local issuer certificate [internal].

### Steps to Reproduce

Whenever I type in AZ Login to either PowerShell or Git Bash cursor shows the error message: SSL: CERTIFICATE\_VERIFY\_FAILED: unable to get local issuer certificate [internal].  
I have tried to debug this by making sure both Azure and Cursor are updated with the paths updated but nothing seems to be working. This issue does not occur in Visual Studio Code.

### Expected Behavior

Whenever I typed az login previously (a week ago or so) it worked but all of sudden it stopped working.

### Screenshots / Screen Recordings

![LGDisplayExtension_SR0Twi3Omq.png](https://us1.discourse-cdn.com/cursor1/original/3X/1/5/15889fca8549ec49d18f47dc3c54574ae0350ec2.png)

### Operating System

Windows 10/11

### Version Information

Cursor IDE Version: 3.3.30

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 10, 2026, 7:35am UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195/5 "2026-05-10T07:35:47Z")

</div>

Hey, from the screenshot it looks like the error is coming from `az login` itself, from Python `_ssl.c`, not from Cursor. That means Azure CLI can’t verify the certificate when connecting to Azure. Cursor is just hosting the terminal.

This is a common sign of a corporate TLS-inspecting proxy like Zscaler, Netskope, an LG proxy, etc. It rebuilds HTTPS using an internal CA. Azure CLI uses Python’s `certifi` bundle and doesn’t know about your corporate CA.

Since it works in VS Code, it’s very likely VS Code has some environment variables set that Cursor didn’t pick up. Can you check:

1. In VS Code, open `settings.json` `Ctrl+Shift+P` then Preferences: Open User Settings (JSON) and look for `terminal.integrated.env.windows` or mentions of `REQUESTS_CA_BUNDLE` or `NODE_EXTRA_CA_CERTS`. If you find them, copy the same values into Cursor settings.json.
2. In both terminals, VS Code and Cursor, run and compare:

```powershell
echo $env:REQUESTS_CA_BUNDLE
echo $env:CURL_CA_BUNDLE
echo $env:HTTPS_PROXY

```

3. If those variables are empty in VS Code and it still works, it might be different az CLI versions or different Python environments. Run `where az` in both terminals. Cursor might be picking up a different `az.cmd`.

The standard fix for corporate proxies is to get the corporate CA PEM file from IT and set it system-wide:

```bat
setx REQUESTS_CA_BUNDLE "C:\path\to\corporate-ca.pem"

```

Then restart Cursor.

If none of that helps, share the output of `az login --debug` with tokens and tenant info redacted. It will show which exact URL Python fails on.

---

<div class="post-metadata">

**Author:** ![J\_M2](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@J\_M2](https://forum.cursor.com/u/J_M2)\
**Post date:** [May 10, 2026, 7:44pm UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195/6 "2026-05-10T19:44:04Z")

</div>

> [@deanrie](#):
>
> `setx REQUESTS_CA_BUNDLE "C:\path\to\corporate-ca.pem"`

Unfortunately, it did not work, but I have found a temporary work around, as I am an individual working on projects rather than a corporate environment.

---

<div class="post-metadata">

**Author:** ![Rachel\_Sunin](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@Rachel\_Sunin](https://forum.cursor.com/u/Rachel_Sunin)\
**Post date:** [May 11, 2026, 5:32am UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195/7 "2026-05-11T05:32:50Z")

</div>

I think, you should checkout these first: Wrong system clock, Self-signed certificate, Python/OpenSSL mismatch and if issue still occurs, checkout the technical solution. This might be helpful, [https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/](https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 11, 2026, 11:35am UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195/9 "2026-05-11T11:35:12Z")

</div>

Glad you found a workaround. If you can, please share here what exactly helped. It might be useful for a user with a similar issue.

A couple of thoughts on why it could suddenly break outside the corporate network:

- A local antivirus or security suite with TLS/HTTPS inspection Kaspersky, BitDefender, ESET, Avast, etc. It signs traffic with its own CA, and Python `certifi` doesn’t know it. VS Code might pick up system CAs via its settings, but Azure CLI its own Python build might not.
- An update to Azure CLI or its Python. Try `az upgrade` or reinstall Azure CLI using the MSI from the Microsoft website. Azure CLI ships with its own Python, and its `certifi` can sometimes lag behind.
- The screenshot name `LGDisplayExtension` hints at LG software. If your laptop has an OEM bundle with a security component, it’s worth checking if it’s doing TLS inspection.

About the advice above on system time: it’s still worth checking, but when time is off you usually get a different error certificate has expired or not yet valid, not unable to get local issuer certificate.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 10, 2026, 11:35am UTC](https://forum.cursor.com/t/cursor-shows-the-error-message-ssl-certificate-verify-failed-unable-to-get-local-issuer-certificate-internal/160195/10 "2026-06-10T11:35:46Z")

</div>

Closed on June 10, 2026, 11:35am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
