You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for some advice with regards to decode and verification of tokens signed with RS256. We seem to be receiving invalid signature errors when passing in the suggested der public key format.
For some back story, We currently have remote systems generating and signing these tokens, the JWT token we need to verify is signed remotely by a nodejs process leveraging this library (https://github.com/auth0/node-jsonwebtoken). Much of the implementation details with regards to signing are fairly typical, but I have some uncertainty with regards to converting and passing the .der format to your library.
For some information on the RSA signing, as well as the public key conversion and some example implementation, I submit the following info.
Just realised the issue was related to generating the der directly from the public.pem. Following along with the information at the bottom of your readme solved the problem...
Hi,
I am looking for some advice with regards to decode and verification of tokens signed with RS256. We seem to be receiving
invalid signature
errors when passing in the suggestedder
public key format.For some back story, We currently have remote systems generating and signing these tokens, the JWT token we need to verify is signed remotely by a nodejs process leveraging this library (https://github.com/auth0/node-jsonwebtoken). Much of the implementation details with regards to signing are fairly typical, but I have some uncertainty with regards to converting and passing the
.der
format to your library.For some information on the RSA signing, as well as the public key conversion and some example implementation, I submit the following info.
public / private pem generation (node system)
which are then converted to the
.der
format with the following.convert public.pem to public.der (for use in rust)
sample code to use the token
Any assistance you could provide would be hugely appreciated.
Regards
S
The text was updated successfully, but these errors were encountered: