title: Kong JWT invalid signature
body: <p>I am using APIs in my web application to fetch data and display.I need the APIs to be authenticated/authorized before accessing the database, so I am using Kong API Gateway to authenticate/authorize the requests(APIs).I am trying to create jwt plugin in Kong but getting invalid signature while validating the request with the JWT .</p>
  
  <p>How to fix Invalid signature error? I am using Kong 0.10.3 in Linux server(I am not using docker or AWS).</p>
  
  <p>Code:
  Below are the steps which I followed:</p>
  
  <pre><code>Step 1.Created Kong API Route:
  curl -X POST http://localhost:8001/apis/ \
     --data "name=Abc" \
     --data "uris=/API" \
     --data "upstream_url=http://*.*.*.*:1212" \
     --data "strip_uri=false"
  
  Step 2.Created plugin
  curl -X POST http://localhost:8001/apis/ABC/plugins \
      --data "name=jwt" 
  
  Step 3.Created Consumer
  curl -X POST http://localhost:8001/consumers \
      --data "username=xyz" 
  
  Step 4.Created JWT credentials
  curl -X POST http://localhost:8001/consumers/xyz/jwt -H "Content-Type: application/x-www-form-urlencoded"
  
  Step 5.Send a request with the JWT(Using the JWT debugger at https://jwt.io)
  
  curl http://localhost:8000/API/ABC?user=1 \
      -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4OTg2MTgwZTQ0ZGQ0ODBmOGU5YzBlODQ3OTQyNDk1YSJ9.sIquZPSmkU8t9RVC8PSBqB8hbs2Th0IIOgphp2iWn2E'
  
  {"message":"Invalid signature"}
  </code></pre>