> Source: https://docs.cyberelements.io/bastion/4.7/lv/Usage/Reference/SystemConsole/Pkis/

# PKIs

The **PKIs** module declares the public key infrastructures the platform trusts, and the certification authorities each of them carries. It is intended for an administrator setting up certificate-based trust: for the web servers, for the gateways and mediation servers, or for user authentication.

A PKI is a container: it is created with a name and a usage, then filled with its certification authorities.

---

## Reading the grid

| Column | Description |
|---|---|
| **Name** | Name of the PKI. |
| **Description** | Free text describing it. |
| **Usage** | What the certificates of this PKI are used for (see the values below). |
| **Certification Authority** | Number of authorities declared in the PKI. |

When none is declared, the grid displays *No PKI.*

The **Search** field filters the list, and the grid is paginated with an **Items per page:** selector.

## Adding a PKI

Click **New PKI**. The **Add PKI** window carries the **PKI settings** group.

| Field | Description |
|---|---|
| **Name:** | Mandatory. Between 1 and 50 characters, limited to letters, digits, spaces and the characters `- / . _`. |
| **Description** | Optional. |
| **Usage** | Mandatory. What the PKI serves: the seven combinations below. |

### The seven usages

A PKI serves one to three purposes, and the value combines them.

| Value |
|---|
| **Certificates for Web servers** |
| **Certificates for gateways/mediation servers** |
| **Certificates for user authentication** |
| **Certificates for Web servers and gateways/mediation servers** |
| **Certificates for Web servers and user authentication** |
| **Certificates for user authentication and gateways/mediation servers** |
| **Certificates for Web servers, user authentication and gateways/mediation servers** |

> **Name and usage are fixed at creation**
>
> In the **Edit PKI** window, **Name:** and **Usage** are displayed but can no longer be modified: only the description remains editable. Choosing the usage is therefore a decision to make when the PKI is created.

## The certification authorities of a PKI

The **Certificate authorities** group only appears when editing an existing PKI: an authority is attached to a PKI that already exists.

| Column | Description |
|---|---|
| **Name** | Name of the authority. |
| **Depth** | Position in the chain: **Root** for a root authority, the rank otherwise, and **Undefined** when the chain cannot be resolved. |
| **CRL** | Number of revocation lists configured for this authority. |
| **Certificate** | Number of certificates configured for this authority. |

Expanding a row shows the **Subject** and the **Reply to** of the authority.

When the PKI carries none, the grid displays *No certification authority.*

### Acting on an authority

| Button | Effect |
|---|---|
| **New certification authority** | Adds an authority to the PKI. |
| **Delete** | Deletes the selected authority. |
| **Configure CRLs** | Opens the revocation lists of the selected authority. |
| **Configure certificates** | Opens the certificates of the selected authority. |

The last three require a selected row.

> **Deleting an authority cascades**
>
> The confirmation states it explicitly: if other authorities depend on the one being deleted, **they are deleted too**. Check the **Depth** column before deleting a root authority.

## Saving

**Validate** saves the PKI, **Close** leaves the window. If a field is missing or malformed, a *Save Error* message reports an incorrect entry.

## Deleting a PKI

Select one or more PKIs and click **Delete**. A confirmation is requested, whose wording adapts to whether one or several PKIs are selected.
