ssh_tls_check
Check the TLS certificate served by a domain from the server's perspective over SSH, reporting days left, SAN match, issuer, and renewal hook status. Optionally use sudo to read renewal configuration.
Instructions
Checks the TLS certificate a domain serves, with the handshake made from the server itself — so it sees what that machine sees, including hosts closed to the outside. Reports days left, whether the name matches a SAN, the issuer and whether renewal is configured — without sudo a missing renewal hook only means the config could not be read. A null field means the check could not run, not that the certificate is bad. Run it per domain, once ssh_audit_baseline has named the sites.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Default: 443 | |
| sudo | No | Read the renewal config as root. Without it "no hook configured" only means "could not look". Default: false | |
| domain | Yes | The name to ask for, e.g. "example.com". | |
| profile | Yes | Machine name. | |
| check_renew_hook | No | Also look for the renewal config. Default: true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| domain | No | ||
| issuer | No | ||
| san_text | No | ||
| not_after | No | ||
| days_until_expiry | No | ||
| renew_hook_evidence | No | ||
| renew_hook_configured | No | ||
| san_includes_hostname | No |