Auth0 Home Blog Docs

Verification Failure in terminal


#1

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?