sammoh94 opened a new issue #99:
URL: https://github.com/apache/pulsar-client-node/issues/99
Hi,
I am trying to use a token to create a producer but keep getting the
following message
```
INFO ClientConnection:330 | [ -> ] Connected to broker
ERROR ClientConnection:388 | [ -> ] Handshake failed: certificate verify
failed
INFO ClientConnection:1349 | [ -> ] Connection closed
ERROR ClientImpl:182 | Error Checking/Getting Partition Metadata while
creating producer on persistent://[topic] -- 5
```
When I try to connect locally using a token, it seems to work however when I
am running it in production, I am seeing the above messages. Therefore, not
sure how to replicate it locally.
Is there a way to use the token or do I have to use the certification /
private key approach when initializing the client:
`return new pulsar.Client({ ..., auth: { certificatePath: '',
privateKeyPath: '' })
----------------------------------------------------------------
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:
[email protected]