# X509 Certificate validity in JWK

**URL:** <https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603>\
**Category:** JWT.io\
**Created:** [March 18, 2020, 6:20pm UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603 "2020-03-18T18:20:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.salvador](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.salvador/32/19901_2.png) [@david.salvador](https://community.auth0.com/u/david.salvador)\
**Post date:** [March 18, 2020, 6:20pm UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/1 "2020-03-18T18:20:57Z")

</div>

Hello,

We have an Auth0 application that uses JWT’s signed with RS256. The RSA keypair used is generated by Auth0. With that keypair a self-signed X509 certificate is created which can later be found in `.well-known/jwks.json`. That X509 certificate has a validity of almost 14 years!

My main questions is:

- Is it possible to create a JWK with a different validity time?

I feel that having an X509 certificate with such a big period of life is a security risk. Either because that keypair is vulnerable to some cryptographic attack that might appear in the future (or already exists but not public) or just to follow key management best practices and not use a key for a long period of time. Just as an example, [Let’s Encrypt has a 90 day certificate validity](https://letsencrypt.org/2015/11/09/why-90-days.html).

Some related questions are:

- Is it possible to have more than one key in an application’s JWKS?
- Is JWT key rotation a process that, for now, has to be done manually? If so, any plans to include some kind of automated key rotation in the future?

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![adam.housman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.housman/32/19907_2.png) [@adam.housman](https://community.auth0.com/u/adam.housman)\
**Post date:** [March 18, 2020, 8:22pm UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/2 "2020-03-18T20:22:21Z")

</div>

Hi @david.salvador ,

Welcome to the community 🙂

We are planning to release a feature that will enable you to rotate your signing keys soon.

Thanks,

Adam

---

<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:** [March 19, 2020, 9:28am UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/3 "2020-03-19T09:28:52Z")

</div>

Thanks for sharing that update @adam.housman!

---

<div class="post-metadata">

**Author:** ![david.salvador](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.salvador/32/19901_2.png) [@david.salvador](https://community.auth0.com/u/david.salvador)\
**Post date:** [March 19, 2020, 10:32am UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/4 "2020-03-19T10:32:25Z")

</div>

Oh, okay. That’s great!

Would it be possible to know an estimate date or year quarter?

Thanks for the quick response.

---

<div class="post-metadata">

**Author:** ![adam.housman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.housman/32/19907_2.png) [@adam.housman](https://community.auth0.com/u/adam.housman)\
**Post date:** [March 19, 2020, 11:03am UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/5 "2020-03-19T11:03:06Z")

</div>

Hi @david.salvador,

We’re currently targeting Q2 of this year.

Adam

---

<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:** [March 19, 2020, 11:05am UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/6 "2020-03-19T11:05:01Z")

</div>

Perfect thanks for letting us know!

---

<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:** [April 3, 2020, 11:05am UTC](https://community.auth0.com/t/x509-certificate-validity-in-jwk/39603/7 "2020-04-03T11:05:06Z")

</div>

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