OxL Reference

enum ClientAuth

Whether a server asks its clients for a certificate (mutual TLS).

Example:

oxl✓ checked in CI
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

Since. 1.0.0-beta

Variants

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.

Defined in: std/net/tls.oxl:61

See also