# RSA Public/Private pair generate

**URL:** <https://community.auth0.com/t/rsa-public-private-pair-generate/52366>\
**Category:** JWT.io\
**Tags:** jwt, rsa256\
**Created:** [October 28, 2020, 8:17pm UTC](https://community.auth0.com/t/rsa-public-private-pair-generate/52366 "2020-10-28T20:17:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jugalnaik123](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jugalnaik123/32/25101_2.png) [@jugalnaik123](https://community.auth0.com/u/jugalnaik123)\
**Post date:** [October 28, 2020, 8:17pm UTC](https://community.auth0.com/t/rsa-public-private-pair-generate/52366/1 "2020-10-28T20:17:01Z")

</div>

Hi All,

I am new to JWT,I am working on RSA256 JWT auth.  
I want to generate a private/Public key pair,I tried to generate online but the public key not getting validate.  
Is there any other way we need to generate the keys ?

Thanks

---

<div class="post-metadata">

**Author:** ![sidharth.chaudhary](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sidharth.chaudhary/32/20686_2.png) [@sidharth.chaudhary](https://community.auth0.com/u/sidharth.chaudhary)\
**Post date:** [October 29, 2020, 1:28am UTC](https://community.auth0.com/t/rsa-public-private-pair-generate/52366/2 "2020-10-29T01:28:02Z")

</div>

Hey @jugalnaik123, Welcome to the Auth0 Community!

You can use OpenSSL to generate a private/public key pair.

We have a sample command here you can refer to:

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

Regards,  
Sid

---

<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:** [November 13, 2020, 1:28am UTC](https://community.auth0.com/t/rsa-public-private-pair-generate/52366/3 "2020-11-13T01:28:10Z")

</div>

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