Network
Check the SSL certificate of any host
Send a host name or a URL. The API opens a TLS connection with SNI to port 443 of the host's first public address (IPv4 first), from a Node.js server, and reads the certificate chain it sends. It tells you whether the chain is trusted by the Mozilla root store and why not, whether the certificate covers the name, how many days are left, and returns the protocol, cipher, key, the chain and the HSTS header.
What one lookup returns
The fields this product reads from the response. The full schema is in the API reference.
| Field | Type | Meaning |
|---|---|---|
| status | string | valid, invalid, unreachable or handshake_failed. |
| issues | array | Problems found, errors first, then warnings such as expires_soon or no_hsts. |
| trusted | boolean or null | true when the chain leads to a root of the Mozilla CA store. |
| trust_error | string or null | Why the chain is not trusted, such as unknown_issuer or incomplete_chain. |
| hostname_match | boolean or null | true when the certificate covers the host. |
| protocol | string or null | TLS version negotiated, such as TLSv1.3. |
| cipher | string or null | Cipher suite negotiated. |
| certificate.subject.common_name | string or null | Common name of the certificate. |
| certificate.issuer.organization | string or null | Organization of the issuing certificate authority. |
| certificate.sans | array | Names the certificate covers (subject alternative names). |
| certificate.valid_to | string | End of validity, ISO 8601. |
| certificate.days_to_expiry | integer | Whole days left before valid_to, negative once expired. |
| certificate.key_type | string or null | rsa, ec, ed25519, ed448 or dsa. |
| chain | array | Certificates the server sent: subject, issuer, end of validity, self-signed. |
| hsts.max_age | integer or null | max-age of the Strict-Transport-Security header, in seconds. |
Live example
The response below was returned by the API for this request.
curl https://api.qelka.com/v1/ssl \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"host":"github.com"}'| host | string · RequiredA host name, or a URL whose host is checked. IP addresses are not accepted. |
|---|---|
| fresh | boolean · Default falsetrue skips the result cache and runs the lookup again. |
Response
{
"id": "lkp_01M8CGD1XX5EWYG0XXJ98VVGBS",
"object": "ssl",
"input": "github.com",
"host": "github.com",
"port": 443,
"ip": "140.82.114.4",
"status": "valid",
"issues": [],
"trusted": true,
"trust_error": null,
"hostname_match": true,
"protocol": "TLSv1.3",
"cipher": "TLS_AES_128_GCM_SHA256",
"alpn": "h2",
"certificate": {
"subject": {
"common_name": "github.com",
"organization": null,
"country": null
},
"issuer": {
"common_name": "Sectigo Public Server Authentication CA DV E36",
"organization": "Sectigo Limited",
"country": "GB"
},
"sans": [
"github.com",
"www.github.com"
],
"serial_number": "3E1D6026B4B0AEA279DCA2EFBBCED82B",
"fingerprint_sha256": "7D:C4:D8:5C:F1:E3:10:97:12:25:BC:9A:92:57:67:90:43:A2:43:D7:0A:3C:C2:A9:1C:C5:D3:89:89:2C:27:76",
"valid_from": "2026-10-30T00:00:00.000Z",
"valid_to": "2027-01-27T23:59:59.000Z",
"days_to_expiry": 62,
"key_type": "ec",
"key_bits": 256,
"self_signed": false
},
"chain": [
{
"subject": "github.com",
"issuer": "Sectigo Public Server Authentication CA DV E36",
"valid_to": "2027-01-27T23:59:59.000Z",
"self_signed": false
},
{
"subject": "Sectigo Public Server Authentication CA DV E36",
"issuer": "Sectigo Public Server Authentication Root E46",
"valid_to": "2036-03-21T23:59:59.000Z",
"self_signed": false
},
{
"subject": "Sectigo Public Server Authentication Root E46",
"issuer": "USERTrust ECC Certification Authority",
"valid_to": "2038-01-18T23:59:59.000Z",
"self_signed": false
},
{
"subject": "USERTrust ECC Certification Authority",
"issuer": "USERTrust ECC Certification Authority",
"valid_to": "2038-01-18T23:59:59.000Z",
"self_signed": true
}
],
"hsts": {
"present": true,
"max_age": 31536000,
"include_subdomains": true,
"preload": true,
"header": "max-age=31536000; includeSubdomains; preload"
},
"http_status": 200,
"checked_at": "2026-11-26T18:03:08.092Z",
"credits_used": 1,
"cached": false
}Use cases
Catch expiring certificates
Check your domains, and those of your customers, every day and alert before days_to_expiry reaches zero.
Explain a browser warning
Tell an incomplete chain, a name not covered, a self-signed certificate and an expired one apart, in plain values.
Audit a list of hosts
Run thousands of hosts through bulk to find old TLS versions, weak keys and sites without HSTS.
Vet a counterparty
See who issued a site's certificate and which other names it covers before you trust a link or a payment page.
Price
1 credit per lookup, from the same balance as every other product.
- Starter
- $2.90 per 1,000 lookups
- Growth
- $1.98 per 1,000 lookups
- Scale
- $1.50 per 1,000 lookups
- Business
- $1.07 per 1,000 lookups
The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.
See pricingData source and freshness
Queried live from the source at request time. Results are cached for 1 hours; send "fresh": true to query again.
- TLS handshake on port 443 of the host checked
License: Facts each server presents at request time · Refresh: per request
- Mozilla CA root store bundled with Node.js
License: MPL-2.0 · Refresh: pinned release
Frequently asked questions
How is trust decided?
Is revocation checked?
Which address and port are checked?
When is a certificate flagged as expiring soon?
What costs a credit?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time