Certificate Deployment
Issued certificates need to reach your services. cert deploy stores deployment bindings per managed certificate: issuance artifacts are written to stable paths, and every successful renewal republishes them automatically.
Adding a binding
Section titled “Adding a binding”Directory mode (recommended) writes four standard files into the target directory:
aster-acme cert deploy add example-cert -n nginx \ --target /etc/nginx/certs/example \ --reload-cmd "systemctl reload nginx"Files written: fullchain.pem, cert.pem, ca.pem, private-key.pem. The parent directory must already exist and be controlled by the deployment operator.
Exact-path mode covers partial artifacts or existing file layouts; any non-empty combination works:
aster-acme cert deploy add example-cert -n haproxy \ --cert-path /etc/haproxy/certs/example.pem \ --key-path /etc/haproxy/certs/example.key \ --key-mode 0640Directory and exact-path modes are mutually exclusive, and all exact paths must differ. Both modes publish regular files at stable directory paths — no deployment symlinks, no directory swaps, no all-or-nothing group switching.
Adding a binding performs the first publication immediately; every successful renewal republishes afterwards.
PKCS#12 bundles
Section titled “PKCS#12 bundles”--p12-path PATH publishes a .p12 chain and private-key bundle alongside any selected exact PEM paths. Directory mode keeps the four PEM files. Bindings store password references only; for the daemon, use a user-managed UTF-8, 0600 password file (first line, up to 4096 bytes):
aster-acme cert deploy add example-cert -n java \ --p12-path /etc/myservice/certificate.p12 \ --p12-password-file /etc/myservice/p12-password--p12-password-env ENV_VAR is the exclusive alternative; the daemon needs the variable in its startup environment. Empty, missing or unreadable sources fail publication, preserving existing files and skipping reload. Passwords cannot contain NUL or characters outside the Unicode BMP. Unix rejects linked or group/other-accessible password files; operators must restrict inherited Windows ACLs.
Omit the source only for an explicit interactive cert deploy run: hidden input is used once and never stored. Add retains the binding but fails its first publication without a source. JSON, redirected terminals, renewal and the daemon never prompt; source-free bindings are not retried automatically. When updating a source, supply --p12-path and all exact paths to retain because target flags replace the whole path set. Bundles follow --key-mode (0600 by default on Unix); show/JSON display paths and source references only.
File permissions
Section titled “File permissions”- Unix default:
0600for the private key and likewise for cert/CA/fullchain files --file-mode 0644sets the certificate group;--key-mode 0640sets the private key separately. Values are 3–4 octal digits (000–777)- Permissions are saved with the binding and reused on renewal; parent directory permissions are never modified
- Windows uses inherited permissions; explicit Unix modes are rejected
The service user must be able to read the published private key.
Reload
Section titled “Reload”--reload-cmd is split into program and argv without a shell: no quote parsing, variable expansion, or pipes. "systemctl reload nginx" is a fixed systemctl argv.
- Without a reload command, publication completing is the end — no process is started
--reload-timeout: per-reload process and output-collection limit, 30 s default (1–3600)--max-retries: extra attempts for explicit start failures or known non-zero exits, 3 default (0–10)- stdout/stderr is shown per target and attempt; each stream keeps up to 64KiB per attempt (overflow marked truncated); output is never auto-redacted
Uncertain states need a human: Reloading/ReloadUncertain means the reload process may already have affected the service. Timeouts and cancellation terminate owned process groups, but daemons that detach from the group cannot be reaped. These states are never retried automatically — inspect the service first, then retry explicitly:
aster-acme cert deploy run example-cert -n nginxPublication failures (PublishFailed/ReloadFailed) are retried automatically by the daemon with backoff (1 min → 10 min → 100 min → daily); a successful deployment of the new generation clears the failure count.
Inspecting and managing
Section titled “Inspecting and managing”aster-acme cert deploy list [CERT_NAME]aster-acme cert deploy show example-cert nginxaster-acme cert deploy update example-cert -n nginx --reload-cmd "systemctl reload nginx"aster-acme cert deploy run example-certaster-acme cert deploy remove example-cert -n nginx --yesshowdisplays the full binding configuration and saved execution state, read-onlyupdatemodifies configuration: target flags replace the whole path set;--clear-reloadremoves the reload command; changes apply on the next explicit run or renewalremovedeletes only the binding — published files stay, certificates are untouched- Deployment status reflects saved local execution records, not service health; verifying the service is your job
nginx example
Section titled “nginx example”ssl_certificate /etc/nginx/certs/example/fullchain.pem;ssl_certificate_key /etc/nginx/certs/example/private-key.pem;Point nginx at the stable published paths and let --reload-cmd "systemctl reload nginx" handle rotation. Multiple bindings are independent: one target failing never loses other targets’ results or the issued certificate.