I did solve it, but I can't remember the reason for this exception....
It might be that the KeyId was missing from the header in the JWT token. That Id should be used in the public and private key as well.
It might be that the KeyId was missing from the header in the JWT token. That Id should be used in the public and private key as well.