I tried to verify auth0 token in bash.
But it seems not to work well. My way is the following.
- Make cert file from x5c in jwks.
openssl x509 -pubkey -noout -in ${cert}>${pubkey}
- Decode signature and save it as file.
echo -n ${header.payload}|openssl dgst -verify ${pubkey} -sha256 -signature ${signature}
I saw “Verification Failure” on terminal.
Please tell me what is the wrong?