ssh_tls_check
Verifies a domain's TLS certificate from the server's perspective: days left, SAN match, issuer, and renewal hook. Catches cert problems for hosts closed to the outside.
Instructions
Checks the TLS certificate a domain serves — days left, whether the name matches a SAN, the issuer and whether renewal is configured — with the handshake made from the server itself, so it sees what that machine sees, including hosts closed to the outside. 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 |