Connector similar to openssl or native-tls for rustls
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 92/100 with only 8 stars
- Around since 2019 and still shipping
- Accepts sponsorship (github)
// how to help
// readme
A TLS connector for rustls modelled after the openssl and native-tls APIs.
rustls-connector gives rustls the connector API of the openssl and
native-tls crates: build a RustlsConnector from a choice of root
certificates, call connect on a stream such as a TcpStream, and retry the
handshake on non-blocking streams the same way. It is the rustls backend of
tcp-stream, and the futures feature adds an async connect_async.
Both connection methods accept borrowed I/O streams and streams that do not
implement Send; async streams must also implement Unpin.
Feature flags
Certificate store (pick at least one)
| Flag | Notes |
|---|---|
platform-verifier (default) |
Platform trust store via rustls-platform-verifier |
native-certs |
Native root certificates via rustls-native-certs |
webpki-root-certs |
Bundled Mozilla root certificate set |