# Trusting the control plane in your browser

> Install the control plane's root CA so browsers and API clients trust it, use your own certificate instead, and what a root rotation means for both.

## Why your browser warns

The control plane encrypts every connection with certificates from its own root CA, which it made when it was installed. Your browser does not know that root CA yet, so it warns on the first visit to `https://<this machine>:3443`. Install the root CA once, on each computer that opens the control plane, and the warning is gone, also for the inference API on port 443.

You can also give the control plane a certificate from your company's or a public certificate authority, which browsers trust already; see **Using your own certificate** below.

## Getting the root CA

On the Configuration page, in **Certificates**:

1. Note the **SHA-256 fingerprint** of the Root CA.
2. Click **Download Root CA**. The file is `onprem-ai-root-ca.crt`; it holds the public certificate only, never a key.
3. Check the fingerprint of the downloaded file before you install it, through a channel you trust: run `openssl x509 -in onprem-ai-root-ca.crt -noout -fingerprint -sha256` on the control plane's machine or yours and compare it with the one on the page (the colons and the letter case do not matter).

## Installing it

**Windows (Edge, Chrome):** open the file, choose **Install Certificate**, **Local Machine** (or Current User), **Place all certificates in the following store**, **Trusted Root Certification Authorities**, and finish. Restart the browser.

**macOS (Safari, Chrome, Edge):** open the file; Keychain Access adds it to the login keychain. Open it there, expand **Trust**, set **When using this certificate** to **Always Trust**, and close the window (it asks for your password).

**Linux (system tools, Chrome, curl):** on Debian and Ubuntu copy it to `/usr/local/share/ca-certificates/onprem-ai-root-ca.crt` and run `sudo update-ca-certificates`; on Fedora and RHEL copy it to `/etc/pki/ca-trust/source/anchors/` and run `sudo update-ca-trust`. Chrome on Linux reads its own store: **Settings, Privacy and security, Security, Manage certificates, Authorities, Import**.

**Firefox (every system):** **Settings, Privacy & Security, Certificates, View Certificates, Authorities, Import**, then tick **Trust this CA to identify websites**.

**API clients:** most take a CA file. For example `curl --cacert onprem-ai-root-ca.crt https://<this machine>/v1/models`, Python's `httpx` and `requests` with `verify="onprem-ai-root-ca.crt"`, or `SSL_CERT_FILE` / `REQUESTS_CA_BUNDLE` for the whole process.

Every address of the machine works, by IP address too: the certificates name all of them. Nothing needs a DNS name.

## Adding a DNS name

When you reach the control plane by a name or an address the machine does not have itself (a DNS name you created for it, a virtual IP, a load balancer's address):

1. Open Configuration → Security → Certificates, and choose **Edit names** beside **Additional names**.
2. Enter the name, one per line (for example `cp.example.com` or `192.0.2.10`), and choose **Save names**. Only DNS names and IP addresses are accepted, without `https://`, a port or a path; the dialog shows the reason when one is refused.
3. Within 30 seconds the certificates from this control plane's root name it: the control plane port, and the inference port, where the inference API and inference nodes connect. Open the control plane by the new name to check. An inference node installed with that name in its install command can join from then on.

An uploaded or installer certificate is not changed by this: it must name the address itself.

## Using your own certificate

Under **Certificates, Public certificate**, each of the two surfaces browsers and API clients use (the control plane: the UI, its API and MCP; and the inference API) has a **certificate source**:

- **Built-in**: from the control plane's root CA, renewed automatically. The default.
- **Uploaded**: a certificate and key you upload with **Upload certificate**. It must name every address clients use (including the one your browser is on), carry its complete chain (your certificate, then its intermediates; the root too unless it is a public one), and stay valid for at least 7 more days. The control plane cannot renew it: it raises an alert 30 days and again 7 days before it expires, and you upload the renewed one.
- **Installer files**: a certificate the installer was given as files on the machine, which the control plane follows when your provisioner renews them. See the guide **Certificates from files on the machine**.

**Not named** lists the machine's addresses the certificate in use does not name; a client dialling one of those is warned. Container network addresses (172.17.0.1 and the like) appear there too; nobody dials them from outside.

Every change asks for your password (an account that signs in with single sign-on signs in again instead, within 10 minutes) and is recorded in the audit log.

Inference nodes connect to the inference port and see its certificate, whichever the source. They accept it when it names the address in their install command and comes from the control plane's root CA or from a certificate authority the machine already trusts (a public one, or your company's when it is installed on the machine). Before you choose **Uploaded** or **Installer files** for the inference API, check that the certificate names every address your inference nodes were installed with; an inference node whose address it does not name stops connecting and says so.

## When the root CA is rotated

An administrator can replace the root CA under **Certificates, Rotate Root CA**. The new root CA downloads at once; install it like the first one. The control plane keeps the old one trusted while inference nodes move to the new one, and **Rotation progress** shows how far that is. Once every inference node uses it, the control plane's own certificates come from the new root CA too, and browsers that only have the old one warn again. Remove the old root CA from your computers once **Rotation progress** reads **No rotation in progress**.

An inference node that stays offline for the whole rotation cannot connect when it returns: add it again with a new install command from Servers, Add Inference Node.
