Skip to content

Accounts

An AsterACME account is a named identity: a stable name bound to one account key pair and the account ID/kid assigned by the CA. Contact addresses receive CA expiry notices; they are not logins. Every account command verifies local identity first, and only register can create a missing local identity.

Account names are 1–64 ASCII letters, digits, underscores, or hyphens. Account commands accept a positional [NAME] or -n/--name, mutually exclusive.

终端窗口
aster-acme account register default --contact admin@example.com
  • Terms acceptance is always explicit: confirm interactively or pass --accept-terms in scripts; --yes does not accept terms
  • --ca selects letsencrypt (default) / zerossl / google; --ca-directory points at any directory URL (such as staging); the two are mutually exclusive
  • --contact is repeatable and acts as a full replacement list
  • --eab-kid and --eab-key-file are provided as a pair for CAs that require EAB; secrets are read from files, never command-line arguments

When a local identity with the same name exists, the terminal confirms before reusing/continuing it (--yes skips the confirmation); it is never silently recreated.

-k/--key-type supports ecdsa-p256 (default), ecdsa-p384, ecdsa-p521, ed25519, rsa-2048, rsa-3072, rsa-4096, and rsa-8192. New accounts default to P-256. Existing identities reject a different explicit type rather than rotating during reuse. Account and certificate key algorithms are chosen independently.

终端窗口
aster-acme account recover default

When the local account key still exists but the account URL/kid is missing or needs reconciliation, recover re-establishes the account observation using the saved key. It never creates a new key or a new CA account. Without the key, ordinary inspection and recovery fail closed — registration is the only entry point for creating an account identity.

终端窗口
aster-acme account list
aster-acme account list --verify
aster-acme account show default
aster-acme account show default --verify

list and show are offline by default and present the local snapshot; --verify queries the CA and refreshes observations. Verification output only expresses what was actually queried (CA query: account refreshed) — local data is never presented as current remote state. account default NAME only changes the local default account and performs no CA operations.

终端窗口
aster-acme account update default -m new-admin@example.com
aster-acme account update default --clear-contacts --yes
aster-acme account update default --profile shortlived --yes

--contact is a full replacement list; --clear-contacts empties it explicitly. The two are mutually exclusive, and a missing value is never treated as a clear. --yes confirms replacing or clearing existing contacts.

终端窗口
# Delegate during registration: accept the current terms and future URL changes
aster-acme account register default --auto-accept-new-terms
# Change the delegation later (combinable with contacts/profile changes in one call)
aster-acme account update default --auto-accept-new-terms --yes
aster-acme account update default --clear-auto-accept-new-terms --yes

Enabling means “accept the CA’s currently advertised terms and trust the directory’s future terms URL changes”. It reads the live directory first and records the exact URL; if the directory cannot be read the command fails instead of delegating silently. A CA that publishes no terms can still be delegated, and the report states that no URL was accepted. Revoking alone is local and sends nothing; the saved accepted URL is retained even when combined with contact/profile changes.

Clearing a profile and revoking delegation together work offline. A concurrent conflicting change to the accepted URL stops the terms update and preserves earlier applied scopes. Neither change sends a CA account update — unlike contact changes, which synchronize with the CA. --yes, JSON mode, and implicit account checks never enable it. account show keeps reporting the delegation and the exact accepted URL.

终端窗口
aster-acme account rotate-key default
aster-acme account rotate-key default -k ecdsa-p384

Rotation follows the ACME keyChange flow: intent is persisted before the request, and network interruptions do not auto-replay. The new key type defaults to the current one. The rotation transaction keeps both keys and its log; explicitly-not-sent and outcome-unknown are tracked separately. --yes confirms a rotation or reconciles a saved rotation transaction.

终端窗口
aster-acme account remove default --deactivate --yes
aster-acme account remove default --yes

remove deletes the locally managed account profile and key without calling the CA (local removal does not mean the account is deactivated remotely); with --deactivate it first irreversibly deactivates the account at the CA — it can no longer issue — then deletes the local profile. Both default to “no” and require --yes in scripts.

Command What it does What --yes confirms
account register Create or continue a local account identity Reusing/continuing an existing local identity
account recover Rebuild the account observation with the saved key (no dangerous confirmation)
account update Replace/clear contacts; set/clear the default profile; enable/revoke future terms delegation (all three scopes combine) Replacing/explicitly clearing; only an explicit terms flag together with --yes skips the separate terms confirmation
account rotate-key ACME keyChange rotation Rotating or reconciling the transaction
account remove --deactivate Deactivate the CA account (irreversible) + delete local profile Deactivation + removal
account remove Delete the local profile and key Local removal