# {"message":"\[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed: certificate has expired (\_ssl.c:1129)"}

**URL:** <https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969>\
**Category:** Get Help\
**Tags:** certificate, ssl, login, auth0\
**Created:** [December 8, 2022, 2:02am UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969 "2022-12-08T02:02:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hc20](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hc20/32/41802_2.png) [@hc20](https://community.auth0.com/u/hc20)\
**Post date:** [December 8, 2022, 2:02am UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/1 "2022-12-08T02:02:37Z")

</div>

All of our applications have been seeing this message upon trying to login via Auth0. Couldn’t find anything that works so far. Looked at this post [Expo CLI - Error: certificate has expired - Expo Development Tools - Forums](https://forums.expo.dev/t/expo-cli-error-certificate-has-expired/57465) here but we don’t use NodeJS.  
We’re using heroku to host our web application and auth0 is being used as an add-on through heroku. The backend is written with Flask and Python and frontend with HTML/CSS/JS.

 ![Screen Shot 2022-12-07 at 9.02.09 PM](https://global.discourse-cdn.com/auth0/original/3X/1/2/1243ee2e61c933c3b3fc7bb1e24b14457276c33b.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 8, 2022, 3:21pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/3 "2022-12-08T15:21:45Z")

</div>

Hi there, please take a look at this post as it appears related:

> [@Auth0 is Down for all our Environments and all our Users are reporting an outage!](https://community.auth0.com/t/auth0-is-down-for-all-our-environments-and-all-our-users-are-reporting-an-outage/95726/12):
>
> Hi folks, apologies to those of you still experiencing issues here. This issue appears to be related to a recent change made by the certificate authority (CA) used by Auth0. If you are seeing expired certificate-related errors, it is most likely a result of an expired certificate being sent with requests to Auth0. The problem seems to be that the client certificate manager is not using a version that’s accepting the proper CA. You need to remove the expired root certificate (DST Root CA X3) f…

---

<div class="post-metadata">

**Author:** ![hc20](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hc20/32/41802_2.png) [@hc20](https://community.auth0.com/u/hc20)\
**Post date:** [December 8, 2022, 4:48pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/4 "2022-12-08T16:48:42Z")

</div>

Hi - thanks @dan.woda. I’m not quite sure how to remove the expired root certificate from the trust store or how to access this trust store. How do I know where to determine if I am using OpenSSL? Is this a device by device issue? how would it be possible to fix for all users? We are using the Authlib package (authlib.integrations.flask\_client) to create an OAuth Object that then calls auth0.authorize\_access\_token(). I’ve tried out the troubleshooting components that you suggested but none seem to be working. How can I also file a support ticket?

---

<div class="post-metadata">

**Author:** ![mattohren](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mattohren/32/45482_2.png) [@mattohren](https://community.auth0.com/u/mattohren)\
**Post date:** [December 8, 2022, 7:44pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/5 "2022-12-08T19:44:42Z")

</div>

I am also interested in the answers to questions @hc20 is asking!  
My companies application has been down having similar outages to those who are replying to @dan.woda

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 8, 2022, 7:56pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/6 "2022-12-08T19:56:44Z")

</div>

Hi folks, can you report what OpenSSL version you are using?

You can use this command in your terminal:

```auto
openssl version

```

---

<div class="post-metadata">

**Author:** ![greg\_trihus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/greg_trihus/32/41829_2.png) [@greg\_trihus](https://community.auth0.com/u/greg_trihus)\
**Post date:** [December 8, 2022, 8:08pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/7 "2022-12-08T20:08:18Z")

</div>

openssl : The term ‘openssl’ is not recognized as the name of a cmdlet, function, script file, or operable program.  
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.  
At line:1 char:1

- openssl version
- 

```auto
  + CategoryInfo : ObjectNotFound: (openssl:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
```

---

<div class="post-metadata">

**Author:** ![greg\_trihus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/greg_trihus/32/41829_2.png) [@greg\_trihus](https://community.auth0.com/u/greg_trihus)\
**Post date:** [December 8, 2022, 8:15pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/8 "2022-12-08T20:15:37Z")

</div>

Windows 10: I removed the certificate but as soon as I launch the app and try to authenticate, the certificate appears again. I tried leaving it and disabling it but this did not give different results. I also tried moving it to “Untrusted” but this did not fix it either. I am using the logic from: [Build and Secure an Electron App - OpenID, OAuth, Node.js, and Express](https://auth0.com/blog/securing-electron-applications-with-openid-connect-and-oauth-2/) which was working until December 7 and now it fails. On the screen it gives “Unauthorized” and on the console it says:

```auto
(node:7228) UnhandledPromiseRejectionWarning: Error: certificate has expired
    at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)
    at TLSSocket.emit (events.js:315:20)
    at TLSSocket._finishInit (_tls_wrap.js:936:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12)
(node:7228) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:7228) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

---

<div class="post-metadata">

**Author:** ![hc20](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hc20/32/41802_2.png) [@hc20](https://community.auth0.com/u/hc20)\
**Post date:** [December 8, 2022, 9:00pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/9 "2022-12-08T21:00:57Z")

</div>

Hi @dan.woda - following up from [{“message”:”[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: certificate has expired (\_ssl.c:1129)”}](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969) - I am using  
OpenSSL 1.1.1n on my local machine 15 Mar 2022  
This is for a macOS Mojave Version 10.14.6

Our web application is hosted on Heroku with Heroku-22 stack, according to @mattohren’s image should be using openssl 3.0.2

Additionally, for our SSL

 ![Screen Shot 2022-12-08 at 4.42.54 PM](https://global.discourse-cdn.com/auth0/original/3X/9/5/95de744a5a8998dd043fbbbc4c18515bae50474f.png)  
 ![Screen Shot 2022-12-08 at 4.43.03 PM](https://global.discourse-cdn.com/auth0/original/3X/b/a/bab63399b2d9b1d3b2cecdbbf3207836b0d87b17.png)

---

<div class="post-metadata">

**Author:** ![mattohren](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mattohren/32/45482_2.png) [@mattohren](https://community.auth0.com/u/mattohren)\
**Post date:** [December 8, 2022, 9:27pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/10 "2022-12-08T21:27:41Z")

</div>

On my local machine I am using

LibreSSL 2.8.3

On my Heroku dynos we use Openssl 1.1.1 (part of Heroku-20 stack)

If we want to use Openssl 3.0.2, i need to upgrade to the Heroku-22 stack

 ![Screen Shot 2022-12-08 at 3.26.00 PM](https://global.discourse-cdn.com/auth0/original/3X/1/9/191ba3e02b50d475af6c8c20bfbc2026747ee2b7.png)

> **[Ubuntu Packages on Heroku Stacks | Heroku Dev Center](https://devcenter.heroku.com/articles/stack-packages)**
>
> The following table lists which Ubuntu packages are installed on each of the Heroku stacks.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 9, 2022, 5:05pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/11 "2022-12-09T17:05:39Z")

</div>

@mattohren, you were able to get it working by upgrading your SDK, right?

---

<div class="post-metadata">

**Author:** ![hc20](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hc20/32/41802_2.png) [@hc20](https://community.auth0.com/u/hc20)\
**Post date:** [December 9, 2022, 7:17pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/12 "2022-12-09T19:17:18Z")

</div>

Hi @dan.woda - do you have any additional updates on my issue?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 9, 2022, 9:34pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/13 "2022-12-09T21:34:39Z")

</div>

@hc20,

Are you using up-to-date versions of python, flask, and the SDKs you are using with Auth0?

---

<div class="post-metadata">

**Author:** ![greg\_trihus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/greg_trihus/32/41829_2.png) [@greg\_trihus](https://community.auth0.com/u/greg_trihus)\
**Post date:** [December 10, 2022, 12:01am UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/14 "2022-12-10T00:01:27Z")

</div>

We found the latest version of axios has an issue that breaks the sample code in the blog. Once a character encoding is set for the response and if axios is pinned at 1.2.0, we got the sample code to work.

---

<div class="post-metadata">

**Author:** ![greg\_trihus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/greg_trihus/32/41829_2.png) [@greg\_trihus](https://community.auth0.com/u/greg_trihus)\
**Post date:** [December 10, 2022, 12:04am UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/15 "2022-12-10T00:04:32Z")

</div>

In our case this issue was resolved by using the latest version of electron. Unfortunately, we have some work to do before our code base can use the latest version. We were using web pack 4 and now web pack 5 is recommend which doesn’t include node so this will also add more work for us in getting the the latest version of things. Apparently older versions of electron use older root certificates and so they won’t work with the latest auth0 which changed their Certificate authority.

---

<div class="post-metadata">

**Author:** ![hc20](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hc20/32/41802_2.png) [@hc20](https://community.auth0.com/u/hc20)\
**Post date:** [December 10, 2022, 4:23am UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/16 "2022-12-10T04:23:29Z")

</div>

@dan.woda, we are using the up to date versions of all of these I believe.  
Authlib==1.2.0  
certifi==2022.12.7  
Flask==2.2.2  
python-dotenv==0.19.2  
python-http-client==3.3.1  
requests==2.3.0  
Werkzeug==2.2.2

---

<div class="post-metadata">

**Author:** ![hc20](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hc20/32/41802_2.png) [@hc20](https://community.auth0.com/u/hc20)\
**Post date:** [December 10, 2022, 6:17pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/17 "2022-12-10T18:17:44Z")

</div>

I’ve resolved my issue! thanks for your help!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 12, 2022, 2:51pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/18 "2022-12-12T14:51:05Z")

</div>

Thanks for sharing your resolutions everyone!

---

<div class="post-metadata">

**Author:** ![mattohren](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mattohren/32/45482_2.png) [@mattohren](https://community.auth0.com/u/mattohren)\
**Post date:** [December 12, 2022, 5:09pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/19 "2022-12-12T17:09:08Z")

</div>

Yep, upgrading the SDK worked for my local and production environments.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 12, 2022, 5:40pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/20 "2022-12-12T17:40:46Z")

</div>

Thanks for the reply!

---

<div class="post-metadata">

**Author:** ![tpluscode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tpluscode/32/17093_2.png) [@tpluscode](https://community.auth0.com/u/tpluscode)\
**Post date:** [December 14, 2022, 7:44pm UTC](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969/21 "2022-12-14T19:44:40Z")

</div>

I’m running into that same problem running an [ASP.NET](http://ASP.NET) app from docker.

Is the solution to install openssl v3?

[Next page](https://community.auth0.com/t/message-ssl-certificate-verify-failed-certificate-verify-failed-certificate-has-expired-ssl-c-1129/95969.md?page=2)
