TLS certificate
tls_certificateConnect to a host and port to read its TLS certificate details, including validity, expiry warnings, SANs, and TLS version. Return invalid-certificate reasons instead of errors.
Instructions
Connect to host:port and read its TLS certificate: subject, issuer, validity dates, days until expiry, SANs, serial, negotiated TLS version and cipher, plus warnings (expires within 14 days, deprecated TLS version). Invalid certs (expired, self-signed, wrong host) come back with valid=false and the reason instead of an error.
Contacts the host directly, like a browser would, 10s timeout, not cached. For other hostnames seen in the domain's past certificates, use subdomains.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname to connect to, e.g. "example.com". It's also the name the certificate is verified against. A URL works too, only the hostname is used. | |
| port | No | TCP port. 443 for websites, 465 / 993 / 995 for mail servers with implicit TLS. |