# SSL Certificate Checker API

> SSL Checker is an SSL certificate API that connects to a website and checks its live certificate in seconds. It returns the certificate details, whether the chain verifies to a trusted root and matches the hostname, the negotiated TLS version and cipher, HSTS and OCSP stapling, plus expiry signals: valid or expired, days until expiry, expiring soon and self-signed.

**Endpoint:** `GET https://api.apiverve.com/v1/sslchecker`  
**Category:** Domain Data  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/sslchecker

## Overview

An SSL checker API and certificate verification API for expiry monitoring, domain audits and CI checks: send a hostname, get its live SSL certificate back as JSON. SSL Checker opens a real TLS connection to the site, reads the certificate and the chain the server sends, and validates it the way a client does (trusted root, hostname match, expiry), returning the verifier's error code such as CERT_HAS_EXPIRED or UNABLE_TO_VERIFY_LEAF_SIGNATURE when it fails. Alongside issuer, subject, key type, key size and signature algorithm, it reports the TLS protocol and cipher negotiated, the Strict-Transport-Security policy, OCSP stapling and embedded Certificate Transparency SCTs, plus derived checks: days until expiry, an expiring-soon flag and self-signed detection. To see which TLS versions a server still accepts, pair it with TLS Checker.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/sslchecker?domain=ebay.com" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | The domain of the website to check the SSL certificate of. www.example.com and example.com are checked as separate hosts, since they often serve different certificates. domain |

## Response fields

- `subject` — object · Certificate subject information including country, state, organization, and common name · (premium)
  - `subject.C` — string · Country code of the certificate subject · (premium)
  - `subject.ST` — string · State or province of the certificate subject · (premium)
  - `subject.O` — string · Organization name of the certificate subject · (premium)
  - `subject.CN` — string · Common name of the certificate subject domain · (premium)
- `issuer` — object · Certificate issuing authority information including country, organization, and common name · (premium)
  - `issuer.C` — string · Country code of the certificate issuer · (premium)
  - `issuer.O` — string · Organization name of the certificate issuing authority · (premium)
  - `issuer.CN` — string · Common name of the certificate authority · (premium)
- `subjectaltname` — string · Alternative subject names included in the certificate · (premium)
- `infoAccess` — object · Information access extension with CA issuers and OCSP URIs · (premium)
  - `infoAccess.CA Issuers - URI` — array · URLs to CA issuer certificates for validation · (premium)
  - `infoAccess.OCSP - URI` — array · Online Certificate Status Protocol URLs for validation · (premium)
- `ca` — boolean · Indicates if certificate is a certificate authority
- `bits` — number · Key size in bits representing certificate strength
- `valid_from` — string · Certificate validity start date and time in GMT
- `valid_to` — string · Certificate validity end date and time in GMT
- `serialNumber` — string · Unique serial number of the SSL certificate · (premium)
- `domain` — string · Domain name the certificate was checked for
- `isExpired` — boolean · Whether the certificate is past its valid_to date
- `isValid` — boolean · Whether the current time is within the certificate's validity window (valid_from to valid_to)
- `daysUntilExpiry` — number · Whole days until the certificate expires (negative if already expired) · (premium)
- `isExpiringSoon` — boolean · Whether the certificate expires within the next 30 days · (premium)
- `isSelfSigned` — boolean · Whether the certificate is self-signed (subject and issuer are the same entity), which browsers do not trust · (premium)
- `protocol` — string · TLS version negotiated for this check, e.g. TLSv1.3
- `cipher` — string · Cipher suite negotiated for this check (IANA name where known, e.g. TLS_AES_128_GCM_SHA256)
- `isTrusted` — boolean · Whether the certificate chain verifies to a trusted root CA (Node.js's bundled Mozilla root store) and is within its validity dates. Hostname matching is reported separately in hostnameMatches. Revocation is not checked
- `trustError` — object · The verifier error code when isTrusted is false, e.g. CERT_HAS_EXPIRED, DEPTH_ZERO_SELF_SIGNED_CERT, SELF_SIGNED_CERT_IN_CHAIN or UNABLE_TO_VERIFY_LEAF_SIGNATURE (usually a missing intermediate); null when trusted
- `hostnameMatches` — boolean · Whether the certificate's subject alternative names (or common name, if it has none) cover the checked domain
  - `chain.0.subject` — string · Common name (or organization) of this certificate · (premium)
  - `chain.0.issuer` — string · Common name (or organization) of the certificate that signed it · (premium)
  - `chain.0.validTo` — string · Expiry date and time of this certificate in GMT · (premium)
  - `chain.0.isCA` — boolean · Whether this certificate is a certificate authority · (premium)
- `keyType` — string · Public key algorithm of the certificate: RSA, EC, Ed25519, Ed448, RSA-PSS or DSA
- `signatureAlgorithm` — string · Algorithm the issuer signed the certificate with, e.g. sha256WithRSAEncryption or ecdsa-with-SHA256 (dotted OID if unrecognised)
- `hasEmbeddedSCTs` — boolean · Whether the certificate embeds Certificate Transparency SCTs (RFC 6962 extension). SCTs delivered by TLS extension or OCSP instead are not detected
- `ocspStapled` — boolean · Whether the server stapled an OCSP response to the handshake
- `hsts` — object · Strict-Transport-Security policy from the response to GET /; null if the server completed the handshake but returned no HTTP response
  - `hsts.present` — boolean · Whether the response carried a Strict-Transport-Security header
  - `hsts.maxAge` — number · max-age in seconds (0 means HSTS is switched off); null if absent
  - `hsts.includeSubDomains` — boolean · Whether the policy includes the includeSubDomains directive
  - `hsts.preload` — boolean · Whether the policy includes the preload directive

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "subject": {
      "C": "US",
      "ST": "California",
      "O": "eBay, Inc.",
      "CN": "ebay.com"
    },
    "issuer": {
      "C": "GB",
      "O": "Sectigo Limited",
      "CN": "Sectigo Public Server Authentication CA OV R40"
    },
    "subjectaltname": "DNS:ebay.com, DNS:befr.ebay.be, DNS:benl.ebay.be, DNS:cafr.ebay.ca, DNS:e-bay.com, DNS:e-bay.it, DNS:ebay.at, DNS:ebay.be, DNS:ebay.ca, DNS:ebay.ch, DNS:ebay.co.nz, DNS:ebay.co.uk, DNS:ebay.com.au, DNS:ebay.com.cn, DNS:ebay.com.hk, DNS:ebay.com.my, DNS:ebay.com.ph, DNS:ebay.com.sg, DNS:ebay.de, DNS:ebay.es, DNS:ebay.fr, DNS:ebay.ie, DNS:ebay.in, DNS:ebay.io, DNS:ebay.it, DNS:ebay.nl, DNS:ebay.ph, DNS:ebay.pl, DNS:ebay.us, DNS:ebay.vn, DNS:shorturiweb.ebay.com, DNS:wwww.ebay.co.uk, DNS:wwww.ebay.com, DNS:wwww.ebay.com.au, DNS:wwww.ebay.de, DNS:wwww.ebay.in, DNS:wwww.ebay.it",
    "infoAccess": {
      "CA Issuers - URI": [
        "http://crt.sectigo.com/SectigoPublicServerAuthenticationCAOVR40.crt"
      ],
      "OCSP - URI": [
        "http://ocsp.sectigo.com"
      ]
    },
    "ca": false,
    "bits": 2048,
    "valid_from": "Oct  6 00:00:00 2026 GMT",
    "valid_to": "Apr 22 23:59:59 2027 GMT",
    "serialNumber": "19FD41E42C169CF248511D2BEE660A83",
    "domain": "ebay.com",
    "isExpired": false,
    "isValid": true,
    "daysUntilExpiry": 182,
    "isExpiringSoon": false,
    "isSelfSigned": false,
    "protocol": "TLSv1.3",
    "cipher": "TLS_AES_128_GCM_SHA256",
    "isTrusted": true,
    "trustError": null,
    "hostnameMatches": true,
    "chain": [
      {
        "subject": "ebay.com",
        "issuer": "Sectigo Public Server Authentication CA OV R40",
        "validTo": "Apr 22 23:59:59 2027 GMT",
        "isCA": false
      },
      {
        "subject": "Sectigo Public Server Authentication CA OV R40",
        "issuer": "Sectigo Public Server Authentication Root R46",
        "validTo": "May 13 23:59:59 2040 GMT",
        "isCA": true
      },
      {
        "subject": "Sectigo Public Server Authentication Root R46",
        "issuer": "USERTrust RSA Certification Authority",
        "validTo": "Jan 18 23:59:59 2038 GMT",
        "isCA": true
      },
      {
        "subject": "USERTrust RSA Certification Authority",
        "issuer": "USERTrust RSA Certification Authority",
        "validTo": "Jan 18 23:59:59 2038 GMT",
        "isCA": true
      }
    ],
    "keyType": "RSA",
    "signatureAlgorithm": "sha256WithRSAEncryption",
    "hasEmbeddedSCTs": true,
    "ocspStapled": true,
    "hsts": {
      "present": true,
      "maxAge": 31536000,
      "includeSubDomains": false,
      "preload": false
    }
  }
}
```

## Use cases

- **SSL Monitoring and Expiry Alerts** — DevOps teams check their domains daily from a cron job or uptime monitor, alerting on certificates close to expiry, failed chain validation or a hostname mismatch before browsers start showing warnings.
- **Customer Domain Audits** — When clients point custom hostnames to a SaaS platform, automated onboarding scripts verify validity status and key strength before activating traffic.
- **Certificate Chain and Key Audits** — Security teams sweep corporate web properties for setups that need fixing: certificates that fail validation, servers missing an intermediate, RSA keys under 2048 bits, SHA-1 signatures or no HSTS policy.
- **Partner Domain Verification** — To prevent broken checkouts, e-commerce marketplaces inspect partner payment gateways to confirm validity windows before routing shopper transactions.

## SDKs

- **npm** — `npm install @apiverve/sslchecker` (https://www.npmjs.com/package/@apiverve/sslchecker)
- **PyPI** — `pip install apiverve-sslchecker` (https://pypi.org/project/apiverve-sslchecker/)
- **NuGet** — `dotnet add package APIVerve.API.SSLCertificateChecker` (https://www.nuget.org/packages/APIVerve.API.SSLCertificateChecker)
- **Source** — https://github.com/apiverve/sslchecker-api

## More

- Full reference: https://docs.apiverve.com/ref/sslchecker
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
