Skip to content

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.

FieldTypeMeaning
statusstringvalid, invalid, unreachable or handshake_failed.
issuesarrayProblems found, errors first, then warnings such as expires_soon or no_hsts.
trustedboolean or nulltrue when the chain leads to a root of the Mozilla CA store.
trust_errorstring or nullWhy the chain is not trusted, such as unknown_issuer or incomplete_chain.
hostname_matchboolean or nulltrue when the certificate covers the host.
protocolstring or nullTLS version negotiated, such as TLSv1.3.
cipherstring or nullCipher suite negotiated.
certificate.subject.common_namestring or nullCommon name of the certificate.
certificate.issuer.organizationstring or nullOrganization of the issuing certificate authority.
certificate.sansarrayNames the certificate covers (subject alternative names).
certificate.valid_tostringEnd of validity, ISO 8601.
certificate.days_to_expiryintegerWhole days left before valid_to, negative once expired.
certificate.key_typestring or nullrsa, ec, ed25519, ed448 or dsa.
chainarrayCertificates the server sent: subject, issuer, end of validity, self-signed.
hsts.max_ageinteger or nullmax-age of the Strict-Transport-Security header, in seconds.

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/ssl \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"host":"github.com"}'
Request fields
hoststring · RequiredA host name, or a URL whose host is checked. IP addresses are not accepted.
freshboolean · 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 pricing

Data source and freshness

Queried live from the source at request time. Results are cached for 1 hours; send "fresh": true to query again.

Data sources

Frequently asked questions

How is trust decided?
The chain the server sends is checked against the Mozilla CA root store bundled with Node.js, the same roots Firefox trusts. trusted is false with a trust_error such as unknown_issuer, incomplete_chain, self_signed or expired when the check fails. A server that forgets its intermediate certificate fails here even when a browser that cached the intermediate shows the site.
Is revocation checked?
No. OCSP and CRL are not queried, so a revoked certificate can still read as valid. Treat a valid result as trusted, in date and covering the name, not as proof that it was never revoked.
Which address and port are checked?
Port 443 of the first public address the host resolves to, IPv4 before IPv6. Hosts that resolve to private or reserved addresses are refused, and IP addresses are not accepted as input. Sites served from several addresses can present different certificates on each.
When is a certificate flagged as expiring soon?
When 30 days or fewer are left before valid_to. The certificate stays valid; issues lists expires_soon so you can renew in time.
What costs a credit?
1 credit when a certificate was read (status valid or invalid), cached 1 hour. A host that does not answer on port 443 or fails the TLS handshake costs 0.

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