SSL Check1–2 Credits
Check a site's certificate and expiry, and grade its HTTPS setup from A+ to F.
Check whether browsers trust a site's certificate, when it expires, and how well its HTTPS is set up. Returns a status, a plain-English summary, an SSL Labs-aligned grade with its reasons, and the issues to fix; verbose=true adds the certificate, chain, connection and evidence detail. full=true adds the exhaustive cipher sweep, grades the same server alike and costs 2 credits.
Each call costs 1 credit, or 2 with full=true. Results are cached for up to 10 minutes.
See Authentication for details.
X-API-Key<token>Provide your API key in an HTTP request header.
host*stringThe host whose certificate to check: a domain name
1 <= lengthverbose?booleanReturn extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails. For SSL, each result also has the detail groups: certificate, chain, connection (protocol versions, cipher classes, and with full=true every accepted suite), revocation, transparency, http (HTTPS redirect and HSTS), dns (CAA), endpoints (one row per IP address) and evidence (every check, the probe transcript, refused suites and timings).
port?integerThe TCP port to check
1 <= value <= 65535443full?booleanRun a full scan. By default (about a second, at most 10) the check measures everything the grade needs: the certificate, chain, revocation, every protocol version and each class of legacy cipher suite. true (at most 20 seconds) adds the exhaustive cipher and key-exchange group sweeps, and turns verbose on unless it is set to false. The grade is the same either way. Costs 2 credits instead of 1
falsesni?stringThe server name to send in the handshake, when it differs from the host. An empty value sends none, to test what the server shows clients without SNI
Successful ssl response
application/json- response
tool*stringTool that generated this result
"dns""domain""reverse""site""dnssec""ssl""email""redirect"query*stringThe original query string
requestId*|Unique request identifier that generated this result
timestamp*stringUTC timestamp when the result was generated
elapsed*|Time taken to generate the result in milliseconds
cached*booleanWhether this result was served from cache
totalElapsed?|Returned with verbose. Total time in milliseconds, including retries and any lookups this one made. For a cached result, the time to read it
retries?numberReturned with verbose. Number of retries before the answer, 0 for a cached result
params?Returned with verbose. The query parameters you set that differ from their defaults
results*array<|>|One result: the simple shape by default, the verbose shape with verbose=true
errors*array<>Empty on a 200, whatever the verdict. On any other status, why the request failed. The HTTP status is in the response line only
See Errors for the response format.
invalid_requestinvalid_queryblocked_addressauthentication_failedinvalid_api_keyapi_key_expiredout_of_creditsforbiddenrate_limitedinternal_errorcurl -X GET 'https://api.dns.tools/v1/ssl?host=github.com'{ "tool": "ssl", "query": "github.com", "requestId": "3c9e1f7a-52b4-4d8e-9a61-7f0b2c5d8e14", "timestamp": "2026-11-26T04:26:29.730Z", "elapsed": 405, "cached": false, "errors": [], "results": [ { "host": "github.com", "port": 443, "status": "valid", "trusted": true, "summary": "The certificate is valid and trusted by browsers. It expires in 62 days.", "grade": "A+", "gradeReasons": [], "issuer": "Sectigo", "issuedAt": "2026-10-30T00:00:00.000Z", "expiresAt": "2027-01-27T23:59:59.000Z", "daysRemaining": 62, "hostnameMatches": true, "coveredNames": [ "github.com", "www.github.com" ], "wildcard": false, "issues": [ { "code": "weak_ciphers", "severity": "low", "message": "The server accepts older CBC cipher suites that use SHA-1.", "fix": "Remove CBC suites that use SHA-1, and prefer AES-GCM or ChaCha20-Poly1305." }, { "code": "non_forward_secret_ciphers", "severity": "low", "message": "The server still accepts cipher suites without forward secrecy, though modern browsers don't use them.", "fix": "Remove static RSA key exchange suites (TLS_RSA_*) from the server configuration." }, { "code": "no_ocsp_stapling", "severity": "info", "message": "The server doesn't attach its certificate's revocation status (OCSP stapling).", "fix": "Turn on OCSP stapling. It saves visitors a lookup." } ], "checkedAt": "2026-11-26T04:26:29.730Z" } ]}