wolfstudy commented on issue #334:
URL:
https://github.com/apache/pulsar-client-go/issues/334#issuecomment-664086101
> @wolfstudy Can you take a look at this issue?
Sure
@ericwangdka `NewAuthenticationTLS` is a method under **pulsar** pkg, so you
need to add the name of pkg to implement the call, as follows:
```
client, err := pulsar.NewClient(pulsar.ClientOptions{
URL: "pulsar+ssl://127.0.0.1:6651/",
TLSTrustCertsFilePath:
"E:\\\\my-ca1\\\\my-ca\\\\certs\\\\ca.cert.pem",
Authentication: pulsar.NewAuthenticationTLS("my-cert.pem",
"my-key.pem"),
})
```
----------------------------------------------------------------
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]