---
title: "Authorities"
description: "Create and manage certificate authorities with Alpacon Private SSL. Set up root CAs, choose key algorithms, and download root certificates or revocation lists."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# Authorities

The Authorities page lets you create and manage certificate authorities (CAs) for your Private SSL infrastructure. Each CA can sign certificates and maintain its own certificate revocation list (CRL).

## Authorities list

Open **Private SSL** → **Authorities** to view all certificate authorities.

The list shows:
- **Name**: CA name with status badge (Active, Initializing, Error)
- **Organization**: Organization name
- **Domain**: Root certificate domain
- **Server**: Server running the CA plugin
- **Root valid for**: Root certificate validity period
- **Child valid for**: Default and maximum validity for signed certificates (e.g., "365 days (default) / 730 days (max)")
- **Signed at**: When the root certificate was signed
- **Expires at**: When the root certificate expires
- **Owner**: CA owner
- **Connected**: Whether the CA server is currently connected

## Creating a certificate authority

1. Click **New certificate authority**
2. Configure the CA settings:

| Field | Description |
|-------|-------------|
| **Name** | Common name for the CA (e.g., "My Company Root CA") |
| **Organization** | Your organization name |
| **Domain** | Domain name for the root certificate |
| **Root certificate validity (days)** | Root certificate validity (default: 3650 days; max: 36500 days / ~100 years) |
| **Default validity for child certificates (days)** | Default validity for signed certificates (default: 365 days; max: 3650 days / ~10 years) |
| **Maximum validity for child certificates (days)** | Upper limit for signed certificates (default: 730 days; cannot exceed the root validity) |
| **Key algorithm** | RSA or ECDSA |
| **Key size** | Adjusts to the algorithm (default 2048 for RSA, 256 for ECDSA) |
| **Server** | Server to run the CA plugin |
| **Owner** | CA owner |
| **Automatic installation** | Install the CA plugin on the selected server automatically (checked by default) |

3. Click **Create**

The three validity values must stay in order: the default validity can't exceed the maximum, and the maximum can't exceed the root certificate's validity. Alpacon refuses a CA whose values break this order, both when you create it and when you edit its default or maximum.

The CA is initialized on the selected server. This may take a few moments.

If you clear **Automatic installation**, Alpacon shows manual installation instructions to run on the server yourself.

## Authority detail page

Click on a CA name to view its details:

**Information displayed:**
- Organization, Domain, Server
- Connectivity status
- Owner and Status
- Validity information (root and child certificates)
- Key algorithm details
- Error message (if the CA encountered an error)

**Available actions:**
- **Download .crt**: Download the root certificate
- **Download .crl**: Download the certificate revocation list
- **Restart plugin**: Restart the CA plugin on the server
- **Upgrade plugin**: Upgrade the CA plugin to the latest version
- **Edit**: Modify CA settings
- **Delete**: Remove a CA that has never received a certificate request

**Tabs:**
- **Certificates**: View all certificates signed by this CA
- **Expiring soon**: View certificates that will expire soon

## Downloading certificates and CRLs

### Root certificate (.crt)

Clients need the root certificate to verify certificates issued by your CA.

**From the web interface:**
1. Go to **Authorities** → select a CA
2. Click **Download .crt**

**From the CLI:**
```bash
alpacon authority download-crt AUTHORITY -o ca-cert.pem
```

### Certificate revocation list (.crl)

The CRL contains revoked certificates. Distribute this to clients for revocation checking.

**From the web interface:**
1. Go to **Authorities** → select a CA
2. Click **Download .crl**

**From the CLI:**
```bash
alpacon authority download-crl AUTHORITY -o crl.pem
```

## CA statuses

| Status | Description |
|--------|-------------|
| **Active** | CA is running and can sign certificates |
| **Initializing** | CA is being set up on the server |
| **Error** | CA encountered an error (check plugin logs) |

## Managing authorities

### Editing a CA

1. Go to the CA detail page
2. Click **Edit**
3. Modify settings and save

### Deleting a CA

You can delete a CA only if it has never received a certificate request:

1. Go to the CA detail page
2. Click **Delete**
3. Confirm deletion

Once a CA has received a certificate request, it can't be deleted. Alpacon refuses the deletion and keeps the CA together with its sign requests, issued certificate records, and revocations, so the history of what it signed stays available.

### Retiring a CA with history

To stop using a CA that has already received requests, [delete the server](/use/servers/remove/) it runs on. The server has to be disconnected first, as that page describes. The CA then leaves the authorities list and is no longer chosen to sign new requests. Its sign requests, certificate records, and revocations are kept, even though the server removal page describes deleting the server's own data as permanent.

## CLI commands

| Command | Description |
|---------|-------------|
| `alpacon authority ls` | List all certificate authorities |
| `alpacon authority describe AUTHORITY` | View CA details |
| `alpacon authority create` | Create a new CA |
| `alpacon authority update AUTHORITY` | Update CA settings |
| `alpacon authority delete AUTHORITY` | Delete a CA |
| `alpacon authority download-crt AUTHORITY` | Download root certificate |
| `alpacon authority download-crl AUTHORITY` | Download CRL |

## Related topics

- [Requests](/use/private-ssl/requests/) - Managing sign and revoke requests
- [Certificates](/use/private-ssl/certificates/) - Viewing issued certificates
- [CLI reference: alpacon authority](/reference/cli/authority/) - Full command reference

Source: https://docs.alpacax.com/use/private-ssl/authorities/
