JWT verify failure

i have tried my token and pub in jwt.io and they sign is verified

but when i configure the same pub key, same token, it reflect error

Information on your n8n setup

  • n8n version: 1.95.3
  • Database (default: SQLite): default (cloud)
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system:

thanks for the AI assistant for guidance
I resolve it by

  1. export my CERT “BEGIN CERT”, … into cert.pem
  2. execute “c:\temp>openssl x509 -pubkey -noout -in wday-cert.pem > public-key.pem”
  3. it converted the key with “BEGIN PUB KEY…”
  4. upload “BEGIN PUB KEY…” to n8n’s public key
  5. working!

seems like standard n8n jwt isn’t friendly to BEGIN-CERT but BEGINE-PUB KEY, good learning!

1 Like