# Custom Signing Key

**URL:** <https://community.auth0.com/t/custom-signing-key/89276>\
**Category:** Get Help\
**Created:** [August 23, 2022, 3:24pm UTC](https://community.auth0.com/t/custom-signing-key/89276 "2022-08-23T15:24:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![banto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/banto/32/12699_2.png) [@banto](https://community.auth0.com/u/banto)\
**Post date:** [August 23, 2022, 3:24pm UTC](https://community.auth0.com/t/custom-signing-key/89276/1 "2022-08-23T15:24:32Z")

</div>

Hi,  
is it possible to use own Signing Key (certificate) to sign JWT tokens?

thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 23, 2022, 6:44pm UTC](https://community.auth0.com/t/custom-signing-key/89276/4 "2022-08-23T18:44:36Z")

</div>

Hey there @banto, good question! To answer your question, no it is not possible to use your own key to sign JWT tokens - These are unique to each tenant and stored in a Key Management System (KMS). This is at its core a security precaution.

---

<div class="post-metadata">

**Author:** ![banto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/banto/32/12699_2.png) [@banto](https://community.auth0.com/u/banto)\
**Post date:** [August 23, 2022, 7:14pm UTC](https://community.auth0.com/t/custom-signing-key/89276/5 "2022-08-23T19:14:04Z")

</div>

…but then I am more doubtful now 🙂 As I have seen a case where an Auth0 customer was using the metadata [https://customer-domain/metadata/.well-known/jwks.json](https://customer-domain/metadata/.well-known/jwks.json) with its own certificate; i.e. the attribute “x5c”: was point to their certificate.

So either I miss something or it is possible to use custom certificate for signing keys. Can you please double check? thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 24, 2022, 12:05am UTC](https://community.auth0.com/t/custom-signing-key/89276/6 "2022-08-24T00:05:55Z")

</div>

I double checked internally and the consensus was that what you’ve described isn’t supported - I’d be curious to know if there is somewhere you can point to that shows where this has been implemented? I’m unable to find any documentation whatsoever 😕

As an aside, it is possible to provide a custom cert for SAML connections:

> **[Sign and Encrypt SAML Requests](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/sign-and-encrypt-saml-requests#use-a-custom-key-to-sign-requests)**
>
> Describes the special configuration scenario to sign and encrypt SAML requests

> **[Sign and Encrypt SAML Requests](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/sign-and-encrypt-saml-requests#change-the-signing-key-for-saml-responses)**
>
> Describes the special configuration scenario to sign and encrypt SAML requests

---

<div class="post-metadata">

**Author:** ![banto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/banto/32/12699_2.png) [@banto](https://community.auth0.com/u/banto)\
**Post date:** [August 25, 2022, 12:12pm UTC](https://community.auth0.com/t/custom-signing-key/89276/7 "2022-08-25T12:12:32Z")

</div>

I’ve clarified with customer and you are right. Their certificate was for another purpose indeed. Else they use Auth0 cert to verify the token issued by Auth0.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 25, 2022, 9:13pm UTC](https://community.auth0.com/t/custom-signing-key/89276/8 "2022-08-25T21:13:31Z")

</div>

Thanks for following up here 😄

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 9, 2022, 9:14pm UTC](https://community.auth0.com/t/custom-signing-key/89276/9 "2022-09-09T21:14:12Z")

</div>

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