Skip to main content

certmate-cli

The CertMate SSL certificate lifecycle from your terminal — built on certmate-sdk.

pip install certmate-cli     # or, on macOS/Linux: brew install fabriziosalmi/certmate/certmate-cli
export CERTMATE_URL=http://localhost:8000
export CERTMATE_TOKEN=...

certmate cert create app.example.com --dns cloudflare --wait
certmate cert ls
certmate cert info app.example.com
certmate cert renew app.example.com --force
certmate cert create app.example.com --dns cloudflare --dry-run
certmate cert create app.example.com --name internal.example.com --dns cloudflare
certmate audit verify

--name names a second certificate for a domain apart from it: the certificate is issued for app.example.com, and every later command takes internal.example.com. The server must be on API contract 2.61 or later; an older one would ignore the name, so the CLI asks first and refuses, and --dry-run says whether the server takes it.

cert reissue reissues a certificate in place, with --san for a new SAN list and --ca-account for the CA account to reissue under:

certmate cert reissue app.example.com --ca-account acct-2   # that account
certmate cert reissue app.example.com --ca-account ''       # the CA's default account
certmate cert reissue app.example.com --san www.example.com # account kept

Without --ca-account the certificate keeps the account it was issued under. The server must be on API contract 2.76 or later; an older one would ignore the account and keep the recorded one, so the CLI asks first and refuses.

Pulling certificates onto a host

cert download fetches one file at a time, so a target server can pull exactly what it deploys instead of the certificate manager pushing to it:

certmate cert download app.example.com --file fullchain -o /etc/ssl/certs/app.pem
certmate cert download app.example.com --file privkey   -o /etc/ssl/private/app.key

Files are created 0600, with the mode set at creation rather than after the write, so the key is never briefly world-readable.

This is worth preferring over pushing when the manager would otherwise need credentials on every target host. Give each host an API key scoped to its own domain and run the pull on a timer: the host needs no inbound access, and the manager holds no credentials for it. cert, chain and fullchain are readable by a viewer-role key; privkey, combined and pfx need operator.

--file privkey --key-format pkcs1 serves the legacy BEGIN RSA PRIVATE KEY form for stacks that reject certbot's PKCS#8. --bundle zip or --bundle json fetch the whole certificate instead, and -o - writes to stdout.

Connection comes from --url/--token or CERTMATE_URL/CERTMATE_TOKEN. Prefer the CERTMATE_TOKEN environment variable over --token: command-line arguments are visible to other local processes (ps) and shell history.

Metadata

Release files for certmate-cli 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certmate-cli 0.1.7
File Size Uploaded Provenance Actions
certmate_cli-0.1.7.tar.gz 11.2 kB With provenance Details for certmate_cli-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certmate-cli 0.1.7
File Interpreter ABI Platform Actions
certmate_cli-0.1.7-py3-none-any.whl Python 3 none any Details for certmate_cli-0.1.7-py3-none-any.whl

Total release size: 22.1 kB

Release files / certmate_cli-0.1.7.tar.gz

Download URL certmate_cli-0.1.7.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ebd7d1430de902e785a72eecb2c9ea42f5c5b669f2dced1be3e5910b301af018
BLAKE2b-256 checksum
How to use checksums
220de474ef61a98d479fa5d2f651e07a95b338edbf84c69255d6b1669d6d5436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / certmate_cli-0.1.7-py3-none-any.whl

Download URL certmate_cli-0.1.7-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f8647ca72ff65c99b84d09d80ac65e8a05653aede8fe8e1b16615618d4c9e2e
BLAKE2b-256 checksum
How to use checksums
3238a4c071bc265f9e3b3cafe09067d37cbccfb76a2d88bab2b451f9d37e8877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for certmate-cli 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for certmate_cli-0.1.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page