question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

See original GitHub issue

Hi, I’m using this library. everything works fine when I dockerize my app and run the docker image. But if I try to run my project locally, I get this error:

RuntimeError: Unable to fetch provider information. Cannot connect to host login.microsoftonline.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')]

How come it works when running via docker image locally, but not without it? The only difference I can see is that image is running on Linux while locally I’m using MacOS. Can you please guide me how to solve this? Also sorry if I’m asking this here, I couldn’t find a solution out there!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JonasKscommented, Nov 1, 2021

Awesome! Happy coding! 🚀

1reaction
JonasKscommented, Nov 1, 2021

The 3 in that URL should be the entire tenant ID. The URL should also work directly in the browser.

https://login.microsoftonline.com/3/v2.0/.well-known/openid-configuration
                                 ^^ 
                              Tenant ID
Read more comments on GitHub >

github_iconTop Results From Across the Web

certificate verify failed: unable to get local issuer certificate
But, I believe, this avoids checking SSL certificate. So I checked on the internet and found one solution: Run /Applications/Python\ 3.7/Install ...
Read more >
certificate verify failed: unable to get local issuer certificate #29
It seems that, for some reason, Brew has not run the Install Certificates.command that comes in the Python3 bundle for Mac.
Read more >
SSL cerfrificaion problem: 'unable to get local issuer certificate'
The 'unable to get local issuer certificate' is a common SSL error faced by devs trying to push, pull, or clone a git...
Read more >
unable to get local issuer certificate (_ssl.c:1129) - You.com
Bug. urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.
Read more >
SSL certificate problem: Unable to get local issuer certificate
A Self-signed certificate cannot be verified. Default GIT crypto backend (Windows clients). Resolution. Resolution #1 - Self Signed certificate. Workaround.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found