Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customization options when using native-tls #866

Closed
gordonwang0 opened this issue May 20, 2024 · 0 comments · Fixed by #870
Closed

Add customization options when using native-tls #866

gordonwang0 opened this issue May 20, 2024 · 0 comments · Fixed by #870

Comments

@gordonwang0
Copy link

gordonwang0 commented May 20, 2024

We are using rumqttc with native-tls and require the option to configure multiple or no CAs and client certificate chains. Right now, this is only possible when using rustls.

The TlsConfiguration struct only supports customization options when using rustls:

Rustls(Arc<ClientConfig>),

We would like to have the equivalent functionality for native-tls. Ideally, the Native variant would take a native_tls::TlsConnectorBuilder to allow more customization of the TLS connection:

// Proposed `Native` variant
Native(native_tls::TlsConnectorBuilder)

The native_tls::TlsConnectorBuilder should then be used to construct the TLS connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant