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

# ClientCertificates

> The client certificate a connection presents for mutual TLS, read from the secrets auth.client_certificate names.

```csharp
public static class ClientCertificates
```

The host builds the connection's transport with it, so the certificate reaches the vendor on every call, the token request included, while the transport still stays where `egress` says. A connector never builds its own client to present one.

## Methods

### KeyOf()

```csharp
public static string KeyOf(X509Certificate2 certificate)
```

A key a transport for `certificate` is kept under.

#### Parameters

**certificate** `X509Certificate2` *required*

#### Returns

`string`

### Of()

```csharp
public static X509Certificate2? Of(ConnectorManifest manifest, IReadOnlyDictionary<string, string?>? values)
```

The connection's certificate, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the manifest declares none or the connection holds none, which a vendor that requires one then refuses at the handshake.

#### Parameters

**manifest** `ConnectorManifest` *required*

Whose `auth.client_certificate` names the secrets.

**values** `IReadOnlyDictionary\<string, string\>` *required*

The connection's values, with secrets decrypted.

#### Returns

`X509Certificate2`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.