API reference

Check a server's TLS certificate

Connect to a host and check the certificate chain it presents: trust, host name, expiry, protocol.

GETPOST/api/tls/checkMCP tool tls_check

Connects to host:port with OpenSSL 3, using SNI, and verifies the presented chain against the Mozilla root store, including host name verification (RFC 6125). It reports OpenSSL's verdict and every verify error with its chain depth, plus the negotiated protocol, cipher and key-exchange group. The chain is then decoded exactly as cert_decode would, with ordering, signature and expiry notes. Only direct TLS is supported (no STARTTLS). Revocation (OCSP/CRL) is not checked, so trusted is false whenever a key trust advisory is critical or high, even if OpenSSL accepted the chain (its root store may lag a distrust, and the eMudhra intermediates were also reachable through a cross-signed root). Every key and certificate is also checked against the keys compromised in the October 2026 eMudhra (emSign) incident (all eight intermediate CA keys, whose private keys are public, and the emSign ECC Root CA - G3 removed from browser trust stores), and a certificate signed by one of them is flagged after verifying the signature with that key. NIST-curve EC keys are also searched for a tiny private value (the eMudhra failure mode), so a key with that weakness is caught even if it is on no list: the API tries private values 1 to 256 and their negations; the web page tries every value below 2^32.

Browser version (runs locally): TLS Checker.

Try it

Credentials
Remember these credentials

Not saved: you will paste them again next time.

No credentials yet? Get a client ID and secret. They are sent only to this site, in an Authorization: Basic header.

POST /api/tls/check with a JSON body

Parameters

ParameterTypeDefaultDescription
hostrequiredstring (≤ 253 chars)—Public DNS name or IP address. Private, loopback, link-local, CGNAT and documentation addresses are refused, both as given and after DNS resolution.
port443 | 8443 | 465 | 636 | 853 | 993 | 995 | 5061443TCP port. Only ports that speak TLS directly are allowed.
servernamestring (≤ 253 chars)—SNI and verification name, if different from host (for example when host is an IP address).

Also accepted on every endpoint: format (json | text). Parameters may come from the query string, a JSON object body, an urlencoded or multipart form, or (for input) a text/plain body.

Global parameters
ParameterTypeDefaultDescription
formatjson | textjsonjson returns the documented object. text returns only the primary value as text/plain (see "Text output").

Response 200 application/json

FieldTypeDescription
hoststringHost as requested.
portintegerPort connected to.
addressstringIP address actually connected to (DNS is resolved once, then pinned).
servernamestring | nullSNI and verification name used.
trustedbooleanTrue when OpenSSL verified the chain to a Mozilla root, the host name matched, and no key trust advisory is critical or high.
verificationobject
verification.okbooleanOpenSSL's verdict alone (chain to a Mozilla root and host name). trusted also requires no critical or high key trust advisory.
verification.codeinteger | nullOpenSSL verify return code (0 = ok; 10 expired; 18/19 self-signed; 20 unknown issuer; 62 host name mismatch).
verification.messagestring | nullOpenSSL's description of that code.
verification.errorsarray of objectEvery verification error OpenSSL reported.
verification.errors[].codeintegerOpenSSL verify error number.
verification.errors[].messagestringDescription.
verification.errors[].depthinteger | nullChain position: 0 is the leaf.
protocolstring | nullNegotiated protocol, e.g. TLSv1.3.
cipherstring | nullNegotiated cipher suite.
key_exchange_groupstring | nullKey exchange group, e.g. X25519MLKEM768 (post-quantum hybrid) or X25519.
peer_signature_typestring | nullSignature scheme the server used in the handshake.
handshake_msintegerConnection and handshake time from the checker.
certificatesarray of objectThe chain as presented, leaf first, decoded.
certificates[].subjectstringSubject distinguished name (RFC 4514 string).
certificates[].issuerstringIssuer distinguished name.
certificates[].serialNumberstringSerial number as colon-separated uppercase hex.
certificates[].signatureAlgorithmstringSignature algorithm, e.g. RSA PKCS#1 v1.5 with SHA-256.
certificates[].validityobject
certificates[].validity.notBeforestringISO 8601 UTC.
certificates[].validity.notAfterstringISO 8601 UTC.
certificates[].validity.status"valid" | "expired" | "not-yet-valid"Relative to at (default: now).
certificates[].validity.daysRemainingintegerWhole days until notAfter; negative once expired.
certificates[].publicKeyobject
certificates[].publicKey.algorithmstringRSA, EC, Ed25519, X25519, or the algorithm OID name.
certificates[].publicKey.bitsinteger | nullKey size in bits (RSA modulus, EC field size).
certificates[].publicKey.curvestring | nullNamed curve for EC keys (P-256, …).
certificates[].publicKey.spkiSha256stringRFC 7469 pin: Base64(SHA-256(SubjectPublicKeyInfo)).
certificates[].subjectAltNamesarray of objectSubject alternative names.
certificates[].subjectAltNames[].typestringdns, ip, email, url, dn, …
certificates[].subjectAltNames[].valuestringThe name.
certificates[].keyUsagearray of stringKey usage extension bits.
certificates[].extendedKeyUsagearray of stringExtended key usage purposes.
certificates[].basicConstraintsobject | null
certificates[].basicConstraints.cabooleanWhether this is a CA certificate.
certificates[].basicConstraints.pathLengthinteger | nullMax intermediate CAs below this one.
certificates[].subjectKeyIdstring | nullSubject key identifier, hex.
certificates[].authorityKeyIdstring | nullAuthority key identifier, hex.
certificates[].ocsparray of stringOCSP responder URLs (AIA).
certificates[].caIssuersarray of stringIssuer certificate URLs (AIA).
certificates[].crlDistributionPointsarray of stringCRL URLs.
certificates[].policiesarray of stringCertificate policies (DV/OV/EV are named).
certificates[].embeddedSctsbooleanTrue when Certificate Transparency SCTs are embedded.
certificates[].selfSignedbooleanTrue when subject equals issuer and the signature verifies with its own key.
certificates[].fingerprintsobject
certificates[].fingerprints.sha1stringSHA-1 of the DER, colon hex.
certificates[].fingerprints.sha256stringSHA-256 of the DER, colon hex.
certificates[].pemstringThe certificate re-encoded as PEM.
certificates[].advisoriesarray of objectKey trust advisories: known compromised or distrusted keys (the October 2026 eMudhra/emSign compromise), certificates they signed (confirmed by verifying the signature), and EC keys whose private value is tiny. Empty when nothing was found.
certificates[].advisories[].code"compromised-key" | "signed-by-compromised-key" | "distrusted-root" | "issued-by-distrusted-root" | "compromised-ca-parent" | "weak-private-key"What was found.
certificates[].advisories[].severity"critical" | "high" | "warning"critical: anyone can sign as this key. high: browsers no longer trust it. warning: context.
certificates[].advisories[].messagestringPlain-language explanation.
certificates[].advisories[].keystring | nullName of the known key involved, e.g. EM OV TLS CA - G3C.
certificates[].advisories[].incidentstring | nullIncident identifier, e.g. emudhra-2026-10.
certificates[].advisories[].referencesarray of stringPublic sources.
notesarray of stringChain observations from the decoder (order, gaps, expiry, host-name coverage, key trust).
advisoriesarray of objectKey trust advisories: known compromised or distrusted keys (the October 2026 eMudhra/emSign compromise), certificates they signed (confirmed by verifying the signature), and EC keys whose private value is tiny. Empty when nothing was found.
advisories[].code"compromised-key" | "signed-by-compromised-key" | "distrusted-root" | "issued-by-distrusted-root" | "compromised-ca-parent" | "weak-private-key"What was found.
advisories[].severity"critical" | "high" | "warning"critical: anyone can sign as this key. high: browsers no longer trust it. warning: context.
advisories[].messagestringPlain-language explanation.
advisories[].keystring | nullName of the known key involved, e.g. EM OV TLS CA - G3C.
advisories[].incidentstring | nullIncident identifier, e.g. emudhra-2026-10.
advisories[].referencesarray of stringPublic sources.
checked_atstringWhen the check ran.

Errors

Errors are JSON: {"error": "<message>", "code": "<code>", "param": "<name>"?}.

StatusCodeWhen
400invalid_parameterThe host is not a DNS name or IP address, or the port is not allowed.
422unprocessable_inputThe host does not resolve, resolves to a non-public address, refuses the connection, or does not speak TLS.
502upstream_errorThe TLS checker failed or timed out (10 s).
503service_unavailableThe TLS checker is not configured on this deployment.
400missing_parameterA required parameter is absent.
400unknown_parameterA parameter name is not in the table above (typos are rejected, not ignored).
413payload_too_largeThe request body exceeds 1 MiB.
405method_not_allowedA method other than GET, POST or OPTIONS.

Behaviour

  • Not idempotent: the result can differ between calls (time, randomness, or a live network check).
  • Requires a client ID and secret (authentication). Each call is recorded as one metadata row against your client ID; inputs and outputs are never stored or logged. Responses carry cache-control: no-store.
  • Contacts the network: this operation asks the TLS checker run by this service to connect to the host you name.
  • CORS: any origin may call this endpoint from a browser, using your credentials.

Examples

Responses below were produced by running each request through this code at build time. Long strings are shortened.

Check example.com

curl 'https://util.caruana.me/api/tls/check?host=example.com'

Response 0

Same call as an MCP tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "tls_check",
    "arguments": {
      "host": "example.com"
    }
  }
}