# Received an error while calling API for generating token "SSL certificate problem: certificate has expired"

**URL:** <https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869>\
**Category:** Get Help\
**Created:** [December 7, 2022, 4:24am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869 "2022-12-07T04:24:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jttorate](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jttorate/32/36444_2.png) [@jttorate](https://community.auth0.com/u/jttorate)\
**Post date:** [December 7, 2022, 4:24am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/1 "2022-12-07T04:24:36Z")

</div>

I received an error “SSL certificate problem: certificate has expired” while accessing API for generating token by giving authorization code. Any help? Thanks!

---

<div class="post-metadata">

**Author:** ![zoeysaurusrawr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zoeysaurusrawr/32/41775_2.png) [@zoeysaurusrawr](https://community.auth0.com/u/zoeysaurusrawr)\
**Post date:** [December 7, 2022, 5:38am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/2 "2022-12-07T05:38:33Z")

</div>

I saw a ton of this today as well. Getting new access tokens was working, but subsequently token validation calls got the same error.

---

<div class="post-metadata">

**Author:** ![robin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/robin/32/12835_2.png) [@robin](https://community.auth0.com/u/robin)\
**Post date:** [December 7, 2022, 11:56am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/3 "2022-12-07T11:56:20Z")

</div>

We have been seeing the same problem as well.

---

<div class="post-metadata">

**Author:** ![zhouqiugang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zhouqiugang/32/41784_2.png) [@zhouqiugang](https://community.auth0.com/u/zhouqiugang)\
**Post date:** [December 7, 2022, 2:18pm UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/4 "2022-12-07T14:18:40Z")

</div>

This is because Auth0’s ssl CA updated to another type today, your (and my) server’s runtime ssl tool does not support it yet. I just solved this issue by upgrade the version(from NodeJS 8 to NodeJS 12). Hope this can help you.  
Reference: [Expo CLI - Error: certificate has expired - Expo Development Tools - Forums](https://forums.expo.dev/t/expo-cli-error-certificate-has-expired/57465)

---

<div class="post-metadata">

**Author:** ![Russell.Aram](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/russell.aram/32/13366_2.png) [@Russell.Aram](https://community.auth0.com/u/Russell.Aram)\
**Post date:** [December 7, 2022, 4:01pm UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/5 "2022-12-07T16:01:38Z")

</div>

We had to manually install the updated Root Cert on some of our older estate kit.

---

<div class="post-metadata">

**Author:** ![jorpcolombia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jorpcolombia/32/41789_2.png) [@jorpcolombia](https://community.auth0.com/u/jorpcolombia)\
**Post date:** [December 7, 2022, 7:51pm UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/6 "2022-12-07T19:51:09Z")

</div>

Hi! I solved the problem in my server updating OpenSSL:

`yum update openssl`

You may require to restart server application.

---

<div class="post-metadata">

**Author:** ![kk.batta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kk.batta/32/36162_2.png) [@kk.batta](https://community.auth0.com/u/kk.batta)\
**Post date:** [December 7, 2022, 7:57pm UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/7 "2022-12-07T19:57:29Z")

</div>

Did Auth0 revert the cert? I was looking at their cert in the morning and now. It seems to have changed

---

<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:23pm UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/8 "2022-12-08T15:23:07Z")

</div>

Hi folks, please take a look at this thread:

> [@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:** ![jttorate](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jttorate/32/36444_2.png) [@jttorate](https://community.auth0.com/u/jttorate)\
**Post date:** [December 9, 2022, 1:44am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/9 "2022-12-09T01:44:38Z")

</div>

Thanks @dan.woda

Fixed the issue by adding “CURLOPT\_SSL\_VERIFYPEER =\> false,” in the curl while calling Auth0 API.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 9, 2022, 7:54am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/10 "2022-12-09T07:54:21Z")

</div>

Thanks for sharing that @jttorate !

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2022, 7:54am UTC](https://community.auth0.com/t/received-an-error-while-calling-api-for-generating-token-ssl-certificate-problem-certificate-has-expired/95869/11 "2022-12-23T07:54:58Z")

</div>

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