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

# Hosts

> Hosts are the central unit for certificate ownership in CertGov — covering devices, applications, servers, and any endpoint that consumes a certificate.

A **Host** in CertGov represents any endpoint that holds or consumes a certificate: a web server, network device, SBC, container, or virtual host. Hosts are the central unit for certificate ownership, expiry notifications, and automated delivery.

Certificates can be issued directly to a Host — no additional grouping required. For multi-host scenarios (delivering the same cert to a primary and failover node, or coordinating staged rollout across a service tier), Hosts can be organized into **Services**. Both are managed from **Hosts** in the sidebar.

***

## Why Hosts matter

A Host record makes ownership explicit. Without one, CertGov can issue and track certificates, but there is no defined owner to notify when they approach expiry and no delivery target to push the renewed cert to.

Registering a Host enables:

* **Expiry notifications** — the host's owner receives email alerts before expiry and on renewal failure
* **Automated delivery** — a Delivery Target on the host triggers the cert lifecycle end-to-end
* **Inventory attribution** — certs are linked to the host so the dashboard shows coverage and gaps

***

## What a Host record contains

| Field | Description |
| - | - |
| **Name** | Human-readable label (e.g., `nginx-prod`, `api-gateway`, `Mediant228-Teams`). |
| **Primary hostname** | The main domain this host serves (e.g., `fun.example.com`). |
| **Additional hostnames** | Other domains this host owns. |
| **Environment** | `production`, `staging`, `development`, or custom. |
| **Owner emails** | One or more people notified on expiry warnings, renewal failures, and cert events. |
| **Preferred Trust Profile** | Default DTP used when requesting certificates for this host. |
| **Management IP / Port** | For network devices — used by the Connector Agent for script-based automation. |
| **Device Template** | For network devices — the script template that handles CSR retrieval and cert installation. |
| **GL code** | Optional cost attribution. |
| **Notes** | Free-form description. |

***

## Create a Host

### Via the UI

1. Navigate to **Hosts** in the sidebar.
2. Click **New Host**.
3. Enter a **Name** and **Primary Hostname**.
4. Set the **Environment** (`production` for live systems).
5. Add at least one **Owner Email** — this person receives expiry notifications.
6. Optionally select a **Preferred Trust Profile** matching the hostname.
7. Save.

For network devices (F5, SBCs, gateways), also set the **Management IP**, **Port**, **Credentials**, and **Device Template**. See [Network Device Automation](https://docs.certgov.app/guides/device-connector.md).

### Via MCP (AI agent)

```
"Create a host for fun.example.com, owner john@example.com, production"
```

Required parameters: `name`, `primary_hostname`, `owner_emails` (array)

***

## Issuing a certificate directly to a Host

Certificates can be issued for any Host without wrapping it in a Service first. From the Host's detail page:

1. Click **Request Certificate**.
2. Select or confirm the **Trust Profile** that covers the hostname.
3. Submit — the request enters the approval queue (or auto-approves if the DTP is configured for it).

Once issued, the cert appears on the Host's detail page and in the inventory.

***

## Notifications

Owners listed on a Host receive email alerts when:

* A certificate is within the **expiry warning window** (configurable in Settings → Notifications)
* A certificate renewal **fails**
* A delivery target reports an **installation error**
* An approval request is created for a cert on this host's hostname

See [Notifications](https://docs.certgov.app/guides/notifications.md) for alert configuration.

***

## Delivery Targets

A Delivery Target on a Host defines where and how a certificate is installed. Each target has:

* **Template** — the script template that performs installation (e.g., `nginx`, `mediant-v7`, `ribbon-swe`)
* **Verify Address** — optional `host:port` for a TLS probe after delivery to confirm the cert is live

One Host can have multiple delivery targets — for example, managing separate certs on multiple TLS contexts of a single network device.

See [Local Application Cert Delivery](https://docs.certgov.app/guides/app-connector.md) for server-side delivery recipes (nginx, Apache, HAProxy, databases) and [Network Device Automation](https://docs.certgov.app/guides/device-connector.md) for network devices and SBCs.

***

## Services (grouping multiple Hosts)

A **Service** is an optional grouping layer for Hosts that share a certificate or need coordinated rollout. Use a Service when:

* Multiple hosts run the same cert (primary + failover, regional load balancers)
* You want staged delivery — roll the cert to staging hosts first, verify, then push to production

Services do not change how certificates are issued or delivered to individual Hosts — they add ordering, validation gates, and a shared ownership view on top.

***

## Querying hosts

```
"List all production hosts"
→ list_applications(environment="production")

"Who owns fun.example.com?"
→ get_application(name="nginx-prod")
  or
→ check_domain(domain="fun.example.com")  — includes host section
```


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