enum ClientAuth
Whether a server asks its clients for a certificate (mutual TLS).
Example:
use std.net { TlsConfig, ClientAuth }
fn mutual() -> TlsConfig {
TlsConfig{ cert: "server.pem", key: "server.key", ca: "clients-ca.pem", clientAuth: ClientAuth.Require }
}pub(api) enum ClientAuthС версии. 1.0.0-beta
Варианты
Off | The server does not ask for a client certificate. |
Request | The server asks for a certificate but accepts a connection without one. |
Require | The server refuses a connection without a valid client certificate. |
Определено в: std/net/tls.oxl:61