pulsar-rs icon indicating copy to clipboard operation
pulsar-rs copied to clipboard

Support for TLS Authentication

Open jmanno01 opened this issue 3 years ago • 3 comments

In the current pulsar crate, it is mentioned as a feature: TLS connection, but when using fn with_auth() of the Struct pulsar::producer::Producer::Builder, it does not support TLS Authentication.

The current Authentication support:pub struct Authentication { /// Authentication kid. Use "token" for JWT pub name: String, /// Authentication data pub data: Vec<u8>, }

coming from connection.rs of the crate

Is there a way to use a TLS Authentication method, because there is no clear way to do so as for now

jmanno01 avatar May 04 '22 13:05 jmanno01

@jmanno01 could you elaborate on what TLS Authenticatin means? 'with_certificate_chain()' method should be used for tls authentication for the client. Authentication in the crate refers to "authenticating" user such as jwt or Oauth2

DonghunLouisLee avatar Jun 10 '22 03:06 DonghunLouisLee

The client being able to validate the server certificate is already supported through with_certificate_chain(). But the client still can't provide it's certificate and private key to the server.

afonsosribeiro avatar Mar 16 '23 23:03 afonsosribeiro