How to sign the JWT with private key from JWK(RS256)

Hi all,

I have custom JWT header, payload, and a JWK key pair generated using RS256 from https://mkjwk.org.

I want to sign the JWT with the private key from the JWK key pair but couldn’t find a proper online tool/library to do that.

Could you advice?

Thanks,