peerglass_tls_inspect
Analyze TLS certificates to verify validity, detect self-signed certificates, check TLS configuration, and audit HSTS deployment for secure connections.
Instructions
Connect to hostname:port over TLS and return full certificate details: subject, issuer, Subject Alternative Names (SANs), expiry date, days remaining, self-signed flag, TLS protocol version, cipher suite, chain length, and HSTS header presence.
Useful for:
Verifying certificate validity before expiry
Detecting self-signed or untrusted certificates
Checking TLS configuration (version, cipher suite)
Auditing HSTS deployment
Args: params (TLSInspectInput): - hostname (str): Target hostname (e.g. 'cloudflare.com') - port (int): TCP port — default 443 - response_format (str): 'markdown' (default) or 'json'
Returns: str: Certificate details, expiry countdown, issuer chain, and HSTS status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |