> Source: https://docs.cyberelements.io/bastion/4.7/mt/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AccessConditions/Certificate/

# Certificate condition

> **Availability of the condition**
>
> | Works without the client | Requires the client | Windows | macOS | Ubuntu |
> |---|---|---|---|---|
> | ✅ | ❌ | ✅ | ✅ | ✅ |

The **Certificate** condition applies to the client certificate presented to the browser when authenticating to the web interface. It allows requiring a workstation holding a certificate issued by the organisation (hence a known workstation) in addition to, or instead of, a password.

![](https://docs.cyberelements.io/bastion/4.7/img/cyberelements/CYE_AdminConsole_AccessConditions_Certificate_Edit.png)

## Two modes

- **User authenticated by certificate** *(default)*: simply checks that authentication was done with a certificate. This is the "trusted workstation" mode.
- **Test the certificate content**: additionally compares a **certificate field** with a **user attribute**. This mode ties the holder to the workstation: the certificate is not enough, it must match the person using it.

The comparable fields are the DN, the CN, the email address, the organisation (O), the organizational unit (OU), or the whole certificate in PEM format, base64-encoded.

## Purpose of the second mode

Without it, a valid certificate authorises **any** user connecting from that workstation. This suits a personal machine, less so a shared one: comparing with a profile field restores the link between the person and the certificate.

## Prerequisites

A PKI issuing the client certificates, and their distribution to the workstations: two tasks performed outside the console. On the platform side, the authorities are declared from the [system console](https://docs.cyberelements.io/bastion/4.7/mt/Usage/Administration/SystemConsole/Pkis/).

## Limits

- The certificate is presented **to the browser**: the condition says nothing about accesses made without a web interface.
- The second mode compares text: an empty profile field matches nothing and makes the condition not valid.
- Revoking a certificate is a matter for the PKI, not for this condition, which only observes what is presented to it.

---

The details of the fields are in the [module reference](https://docs.cyberelements.io/bastion/4.7/mt/Usage/Reference/AdminConsole/AccessConditions/).
