DEV Community

Discussion on: JWT Authentication with Asymmetric Encryption using certificates in ASP.NET Core

Collapse
 
davidkroell profile image
David Kröll

Hi, thanks for your nice write-up for asymmetric JWTs. Is it also possible to use the JWT signing method with ECDSA cryptography (ES256)? By using this instead of the RSA scheme a more compact but also more secure token signing would be possible. I haven't found any article on the web so far, maybe you could help me out here?
Thanks

Collapse
 
eduardstefanescu profile image
Eduard Stefanescu

Hello, thank you too for the interest in this topic.
Currently, I don't know if it's possible to use ES256. But it's an interesting research idea that I will follow up on and return to this discussion with an answer.

Collapse
 
davidkroell profile image
David Kröll

This would be nice, thank you!

Thread Thread
 
eduardstefanescu profile image
Eduard Stefanescu

I apologize for the delay in responding. I found the following code snippets about ES256: gist.github.com/tpeczek/27a14c3dcf....

I'll try that and write a post if I successfully sign the JWT using that method.