Skip to content

Commit 05cdbb5

Browse files
committed
tls docs: Recommend SslConnector for openssl
1 parent ba1eecb commit 05cdbb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/source/connecting/tls.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ and a rustls
5959
can be automatically converted to a `TlsContext` when passing to
6060
`SessionBuilder`.
6161
62+
**_NOTE:_** Recommended API in `openssl` crate is `SslConnector`, because it has safer defaults. Please use it, and then call `into_context()` to
63+
get `SslContext` instance you can pass to the driver.
64+
6265
For example, if database certificate is in the file `ca.crt`:
6366
```rust
6467
# extern crate scylla;

0 commit comments

Comments
 (0)