This commit is contained in:
Mateusz Gruszczyński committed 2026-11-14 17:24:12 +01:00
1 parent 78dbb31487
commit f48843e934
83 files changed
+7304 -1203

No files matched your search

+10 -2
View File
@@ -63,7 +63,7 @@ When another service owns the certificate, add a manual certificate with the act
### One vhost, several certificates (SNI selection)
A vhost normally uses one certificate for all of its names. When a single vhost serves domains that have **different** certificates (for example several `autodiscover.<domain>` names, each with its own certificate), leave the vhost certificate on **Global SNI / default certificate**. RustProxy then picks the certificate for every TLS connection by the requested server name (SNI) from the stored certificates whose **SNI names** include it. Wildcard names match one label (`*.example.com` matches `a.example.com`, not `a.b.example.com`).
A vhost normally uses one certificate for all of its names. When a single vhost serves domains that have **different** certificates (for example several `autodiscover.<domain>` names, each with its own certificate), leave the vhost certificate on **Global SNI / default certificate**. RustProxy then picks the certificate for every TLS connection by the requested server name (SNI) from the stored certificates whose **SNI names** include it. Wildcard names match one label (`*.example.com` matches `a.example.com`, not `a.b.example.com`). When no SNI name matches, RustProxy also checks the names each stored certificate really covers (its DNS SAN entries), preferring the certificate with the fewest names, before it falls back to the default certificate; so `app.apps.example.com` gets a `*.apps.example.com` certificate even when only `*.example.com` is listed in SNI names.
1. Open **Certificates**, edit the certificate and open **Existing files / advanced**.
2. Check **SNI names**: it is filled automatically from the certificate's SAN entries and can be edited.
@@ -88,7 +88,15 @@ Keep the original Certbot renewal system and use the RustProxy certificate reloa
### Restricted certificate API
Create an appropriately scoped credential in **Settings → Certificate API**. Its allowed certificate IDs and action permissions control **reload** or **deploy**; it is not a general administration token. A caller supplies both a Bearer credential and its configured `X-RustProxy-Certificate-Key` ID. Use HTTPS outside local/trusted transport and never store the clear token in the repository. See [Administration API](API.md).
Create an appropriately scoped credential in **Settings → Certificate API**. Its allowed certificate IDs and action permissions control **reload** or **deploy**; it is not a general administration token. A caller supplies both a Bearer credential and its configured `X-RustProxy-Certificate-Key` ID. Use HTTPS outside local/trusted transport and never store the clear token in the repository. See [Administration API](API.md#restricted-certificate-api-credentials).
The tab lists the existing keys first: permission badge (*reload only* or *deploy + reload*), the allowed certificates as chips (a dashed chip is an ID that is not stored yet), creation and last-use time, and the actions **Edit**, **Regenerate token** and **Revoke token**.
- **New key** opens the editor: Key ID, comment, the permission as two choices — **Reload only** for Certbot/acme.sh hooks that write the PEM files themselves, **Deploy and reload** for automation that uploads certificate and key (for example the [OPNsense ACME client integration](../integrations/opnsense-acme/README.md)) — and **Allowed certificates**, chosen in the same searchable picker as elsewhere in the panel (it shows the host names of every stored certificate).
- For deploy keys, type a new ID in the picker and press Enter: the first deploy creates that certificate. Certificates managed by RustProxy ACME are marked *reload only*; a deploy to them is refused (409).
- A custom token is optional (*Custom token*); otherwise a strong token is generated. The token appears once in a highlighted box with **Copy**. **Edit** never changes the token.
- `*` (all certificates) can no longer be saved. Keys migrated from versions before 0.28.2 may still carry `*`; they keep working, are marked in the list, and the editor asks for explicit certificates when the key is edited. Saving an empty list, more than 32 IDs, `*` or an ID with characters other than letters, digits, `-` and `_` is rejected with *Certificate API keys need 1-32 explicit certificate IDs*.
- The collapsible *Usage example (curl)* shows the reload and deploy calls for the key being edited.
## Problems to check