acme — lilu API

←index

Overview

ACME client library for automated TLS certificate management via Let's Encrypt and compatible CAs.

Provides factory functions that target Let's Encrypt production/staging endpoints or a custom ACME directory URL. The returned client object drives the full certificate lifecycle: account registration, order creation, challenge solving, CSR submission, and certificate retrieval.

Submodules

ModuleDescription
acme.clientCore ACME protocol client managing the full certificate lifecycle.
acme.jwsJSON Web Signature helpers for ACME protocol compliance (ES256/P-256).
acme.ordersIn-memory order state tracker for the ACME certificate flow.
acme.providersPlugin loader for ACME storage backends and challenge solvers.
acme.transportHTTP transport layer for ACME requests with automatic nonce tracking.

Functions

NameSignature
newnew(cfg) -> client, err
le_prodle_prod(cfg) -> client, err
le_stagele_stage(cfg) -> client, err

new(cfg) -> client, err

Create an ACME client with a custom directory URL

le_prod(cfg) -> client, err

Create an ACME client targeting Let's Encrypt production

Shorthand for new() that pre-fills cfg.directory_url with the Let's Encrypt production endpoint (https://acme-v02.api.letsencrypt.org/directory). Certificates issued by this endpoint are publicly trusted.

le_stage(cfg) -> client, err

Create an ACME client targeting Let's Encrypt staging

Shorthand for new() that pre-fills cfg.directory_url with the Let's Encrypt staging endpoint. Use this for testing; certificates are not publicly trusted.