You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/15 11:29:30 UTC

[GitHub] [apisix] shuaijinchao edited a comment on issue #5067: jwt-auth插件failed to sign jwt HTTP/1.1 500 Internal Server Error

shuaijinchao edited a comment on issue #5067:
URL: https://github.com/apache/apisix/issues/5067#issuecomment-919935764


   ```bash
   curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '{
     "username": "kerouac",
     "plugins": {
       "jwt-auth": {
         "algorithm": "RS256",
         "base64_secret": false,
         "exp": 86400,
         "key": "user-key",
         "private_key": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
         "public_key": "-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----\n"
       }
     }
   }'
   ```
   
   ---
   
   The public key and private key settings are reversed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org