Verification Failure in terminal

I tried to verify auth0 token in bash.
But it seems not to work well. My way is the following.

  1. Make cert file from x5c in jwks.
  2. openssl x509 -pubkey -noout -in ${cert}>${pubkey}
  3. Decode signature and save it as file.
  4. echo -n ${header.payload}|openssl dgst -verify ${pubkey} -sha256 -signature ${signature}

I saw “Verification Failure” on terminal.
Please tell me what is the wrong?

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?