# ed site-audit certificate

> ed site-audit certificate in the Edith ed command line reference. ed site-audit

- Canonical URL: https://getedith.pro/docs/cli/site-audit/certificate
- Updated: 2026-12-02

[`ed site-audit`](https://getedith.pro/docs/cli/site-audit)

[The `ed` command line](https://getedith.pro/docs/cli)

```bash
ed site-audit certificate <id> [--check] [--json]
```

Shows the TLS certificate check saved on an HTTPS project. Without `--check` it prints the last saved check (`null` in JSON when the site was never checked) and does not connect. `--check` opens one TLS connection to the project's host and port, gives up after 10 seconds without retrying, sends no HTTP request, and saves the result on the project, where the Site Audit screen shows it too. `cert` is an alias.

The status is `valid`, `expiring` (fewer than 30 days left), `expired`, `notYetValid`, `hostMismatch` (the certificate does not name the host), `untrusted` (macOS does not trust the chain) or `unreachable` (no certificate was presented; `error` says why). JSON includes `host`, `port`, `checkedAt`, `status`, `daysLeft`, `hostMatches`, `trusted`, `trustError`, `error` and `chain`, leaf first, with each certificate's `subject`, `issuer`, `notBefore`, `notAfter` and `sha256` fingerprint.

HTTP projects have no certificate, so the command fails for them. A check is refused while that project's audit or another certificate check is running.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
