SSL Certificate Checker

SSL Certificate Checker API

Security

Check any website's SSL/TLS certificate: whether it is trusted, covers the domain and is in date, plus the issuer, expiry, TLS version and full chain.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

20 requests per minute

Endpoints

1 endpoint available

Overview

Open a TLS connection to a public host and report on the certificate it presents: whether the chain is trusted, whether it covers the hostname, when it expires, who issued it, the key type and size, the names it covers, and every certificate in the chain the server sent.

Notes

  • Send fields as query parameters (GET) or in a JSON body (POST).
  • host can be a bare domain, example.com:8443 or a URL. An explicit port wins over a port in host; the default is 443.
  • Works for any service that starts TLS straight away (HTTPS, IMAPS 993, POP3S 995, SMTPS 465, LDAPS 636). STARTTLS ports such as SMTP 25 or 587 are not supported.
  • Hostnames that resolve to private, loopback, link-local or other reserved addresses are refused. The connection goes to the vetted IP with SNI set to the hostname. Timeout is 8 seconds.
  • Untrusted or mismatched certificates are reported, not rejected: check trusted, trustError, hostnameMatches and hostnameError.
  • chain starts with the leaf certificate. daysRemaining is negative once a certificate has expired.

Endpoints

GET
https://opentools.ca/api/v1/tools/ssl-checker
Check the TLS certificate a host presents. POST with the same fields in a JSON body also works.

Query Parameters

ParameterTypeRequiredDescription
host
string
Required
Domain to check, e.g. example.com, example.com:8443 or https://example.com. Max 300 characters.
port
number
OptionalPort to connect to, 1-65535.Default: 443

Response Example

{
  "success": true,
  "host": "example.com",
  "port": 443,
  "ip": "93.184.215.14",
  "checkedAt": "2026-11-25T15:04:05.000Z",
  "protocol": "TLSv1.3",
  "cipher": "TLS_AES_256_GCM_SHA384",
  "trusted": true,
  "trustError": null,
  "hostnameMatches": true,
  "hostnameError": null,
  "chain": [
    {
      "subject": "*.example.com",
      "subjectOrg": "Internet Corporation for Assigned Names and Numbers",
      "issuer": "DigiCert Global G3 TLS ECC SHA384 2020 CA1",
      "issuerOrg": "DigiCert Inc",
      "validFrom": "2026-01-15T00:00:00.000Z",
      "validTo": "2027-01-15T23:59:59.000Z",
      "daysRemaining": 51,
      "serialNumber": "0AD893BAFA68B0B7FB7A404F06ECAF9A",
      "fingerprint256": "31:0D:B7:AF:4B:2B:C9:04:0C:83:44:70:1A:CA:08:D0:C6:93:81:E3:...",
      "keyType": "ec",
      "keyBits": 256,
      "curve": "prime256v1",
      "altNames": [
        "*.example.com",
        "example.com"
      ],
      "isCa": false,
      "selfSigned": false
    },
    {
      "subject": "DigiCert Global G3 TLS ECC SHA384 2020 CA1",
      "subjectOrg": "DigiCert Inc",
      "issuer": "DigiCert Global Root G3",
      "issuerOrg": "DigiCert Inc",
      "validFrom": "2021-04-14T00:00:00.000Z",
      "validTo": "2031-04-13T23:59:59.000Z",
      "daysRemaining": 1600,
      "serialNumber": "0B00E92D4D6D731FCA3059C7CB1E1886",
      "fingerprint256": "...",
      "keyType": "ec",
      "keyBits": 384,
      "curve": "secp384r1",
      "altNames": [],
      "isCa": true,
      "selfSigned": false
    }
  ]
}

Error Codes

400
Invalid host or port, or the host points to a private or reserved address
401
Missing or invalid API key
403
API key inactive, expired, or not allowed from this IP
404
The domain does not exist or has no IP addresses
429
Rate limit exceeded
500
Internal server error
502
Connection refused or reset, the port does not speak TLS, or no certificate was sent
504
The host did not answer in time

Code Examples

curl "https://opentools.ca/api/v1/tools/ssl-checker?host=example.com&port=443" \
  -H "Authorization: Bearer YOUR_API_KEY"

Ready to get started?

Create an API key to start using the SSL Certificate Checker API.

Rather use it in your browser? Open the SSL Certificate Checker