Skip to main content

Module tls

Module tls 

Source
Expand description

TLS connector construction for the connection pool, via rustls.

Enabled by the tls cargo feature (on by default). Certificates are verified against the Mozilla root store (webpki_roots) — chain and hostname — for every TLS-capable crate::config::SslMode. This is deliberately stricter than libpq, whose sslmode=require performs no certificate verification; there is currently no encrypt-without-verify mode.

Functions§

make_tls_connector
Build the TLS connector handed to deadpool’s Manager.