oa_gateway_testing::tls

Function client_tls

Source
pub fn client_tls(certs: &TestCerts, server_name: &str) -> ClientTls
Expand description

A [ClientTls] that trusts certs and checks the peer’s certificate against server_name.

§Panics

Panics if certs does not parse or server_name is not a usable DNS name or IP address.