> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ClientCertificateConfig

> atoti.ClientCertificateConfig(\
>
>     \*,\
>
>     *trust\_store*: [Path](https://docs.python.org/3/library/pathlib.html#pathlib.Path),\
>
>     *trust\_store\_password*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) | [None](https://docs.python.org/3/builtins/constants.html#None),\
>
>     *username\_regex*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) = `'CN=(.*?)(?:,|$)'`,\
>
> )

The JKS truststore config to enable client certificate authentication (also called mutual TLS or mTLS) on the application.

**See also**:
[`ClientCertificate`](./atoti.authentication.ClientCertificate#atoti.ClientCertificate).

### Attributes

#### *trust\_store*

Path to the truststore file generated with the certificate used to sign client certificates.

#### *trust\_store\_password*

Password protecting the truststore.

#### *username\_regex*

Regex to extract the username from the certificate.
