# JWT creation using RS256

**URL:** <https://community.auth0.com/t/jwt-creation-using-rs256/49024>\
**Category:** JWT.io\
**Tags:** rs256\
**Created:** [September 1, 2020, 7:16pm UTC](https://community.auth0.com/t/jwt-creation-using-rs256/49024 "2020-09-01T19:16:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![creative\_coder](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/creative_coder/32/15439_2.png) [@creative\_coder](https://community.auth0.com/u/creative_coder)\
**Post date:** [September 1, 2020, 7:16pm UTC](https://community.auth0.com/t/jwt-creation-using-rs256/49024/1 "2020-09-01T19:16:52Z")

</div>

I’m trying to create a JWT using RS256. I’ve generated a public and private certificates.  
.NET core is used to create the JWT. The following are the steps that I’m using to create the JWT.

var header = base64URLencode(HeaderDetails);  
var payload = base64URLencode(payloadDetails);  
var headerandpayload = header + “.” + payload;

var signature = base64URLencode(RSASHA256(headerandpayload, RSAprivateKey));

var encodedJWT = headerandpayload + “.” + signature;

When I try to validate the JWT using the debugger in [jwt.io](http://jwt.io), the signature part in JWT changes when I provide the private key in the textarea. Though I get the message as a “Valid signature”, I’m not sure why the signature part of the JWT should change?

---

<div class="post-metadata">

**Author:** ![alexs1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexs1/32/44008_2.png) [@alexs1](https://community.auth0.com/u/alexs1)\
**Post date:** [January 26, 2023, 9:02pm UTC](https://community.auth0.com/t/jwt-creation-using-rs256/49024/2 "2023-01-26T21:02:24Z")

</div>

I have the same issue, did you manage to get this working?
