oa_gateway_testing::tls

Function untrusted_client_tls

Source
pub fn untrusted_client_tls(server_name: &str) -> ClientTls
Expand description

A [ClientTls] that trusts a different self-signed authority than whatever the server under test presents — for a test asserting that an untrusted certificate is rejected.

§Panics

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