Skip to main content

renew_proxy_site_cert

Function renew_proxy_site_cert 

Source
pub async fn renew_proxy_site_cert(
    app: &App,
    acme_email: &str,
    site_id: i64,
    domain: &str,
) -> ClResult<()>
Expand description

Renew the TLS certificate for a single proxy site via ACME.

Loads the persisted ACME account (creating it on first use), generates the certificate, stores it in the auth adapter, and invalidates the cert cache. Called inline from proxy site creation and manual renewal endpoints, as well as from the periodic CertRenewalTask.