I'm also facing the same issue. Let me know if you were able to fix this issue.
How to fix [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)
Manisha Mohanty
10
Reputation points
I am trying to use Microsoft Graph API to access outlook mail to develop a program which will monitor the mailbox.While trying to implement the sample code outlined below -
https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad&tutorial-step=2
I am encountering the following error - azure.core.exceptions.ClientAuthenticationError: Authentication failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)
I have tried -
- installing certifi
- upgrading certifi
- installing certifi_win32
- installing certificates
- disabling expired certificated
- using verify=False which is not recommended, but still this error comes up after a point
- setting REQUESTS_CA_BUNDLE env variable to force requests library to use the cacert.pem
- Adding the intermediate cert to the cacert.pem
Nothing seems to work. I am using Windows and trying to run the python scripts on command prompt.