ssl_certificate
Check SSL/TLS certificate details for any domain including issuer, expiry date, validity, cipher strength, and protocol version.
Instructions
Check the SSL/TLS certificate for a domain. Returns issuer, expiry date, days until expiry, certificate chain validity, cipher strength, SAN domains, fingerprint, and TLS protocol version.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to check SSL certificate for (e.g. github.com) |
Implementation Reference
- src/tools.ts:220-237 (handler)Handler function for the ssl_certificate tool which calls the /v1/certificates/check API endpoint.
async ({ domain }) => { try { const result = await apiPost( "/v1/certificates/check", { domain }, { prefix: "/portal-api", timeout: 15000 } ); return { content: [{ type: "text", text: formatJson(result) }] }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; - src/tools.ts:214-219 (registration)Registration of the ssl_certificate tool with its schema definition.
server.tool( "ssl_certificate", "Check the SSL/TLS certificate for a domain. Returns issuer, expiry date, days until expiry, certificate chain validity, cipher strength, SAN domains, fingerprint, and TLS protocol version.", { domain: z.string().describe("Domain name to check SSL certificate for (e.g. github.com)"), },