Command reference
ed site-audit certificate
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.