You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/16 09:31:36 UTC

[GitHub] [pulsar-manager] Omega-Ariston commented on issue #318: Unable to create token

Omega-Ariston commented on issue #318:
URL: https://github.com/apache/pulsar-manager/issues/318#issuecomment-659294735


   Yeah, this error message is kind of misleading...
   Check the same segment of code from the latest pulsar repo and you can find that the implementation has been improved.
   
   https://github.com/apache/pulsar/blob/b6ceec41f7c9ba8a2cd130a9537894ecd8c8f3ee/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/utils/AuthTokenUtils.java#L108-L134
   
   You may wanna take a look at your `application.properties`. That's where the attribute `jwt.broker.private.key` sits. And this attribute should be passed in a filepath that starts with "data:" or "file:", or a base64 encoded string.
   
   if you don't know how to generate such key files, this may help:
   http://pulsar.apache.org/docs/en/security-token-admin/#creating-a-key-pair


----------------------------------------------------------------
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.

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