Skip to content

Commit ba1eecb

Browse files
committed
tls docs: Add section about hostname verification
1 parent ce93fd3 commit ba1eecb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/source/connecting/tls.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Driver uses either the
66

77
Both of this features are behind their respective feature flag.
88

9+
## Hostname verification
10+
11+
For both implementations we provide node IP address for purposes of hostname verification.
12+
Our assumption is that certificates on nodes will have node IP address in the subject alternative name.
13+
14+
Implementation details (might change in the future):
15+
For openssl we use `set_ip` method on `X509VerifyParamRef`, which corresponds to `X509_VERIFY_PARAM_set1_ip` openssl function.
16+
For rustls, we use `ServerName::IpAddress`, which is passed to `ClientConnection::new_with_alpn` (by `tokio_rustls`).
17+
918

1019
### Enabling feature
1120

0 commit comments

Comments
 (0)