Skip to main content

SSL Certificates API

free
GET/v1/domain/ssl

Inspects the certificate currently served by a host through a live TLS handshake. Reports certificate identity, validity, public key, hostname/trust verification, the server-sent chain, and policy findings. Certificate Transparency history is separate from the currently deployed certificate.

What It Does

Collects the served leaf and server-sent chain from a native TLS probe, verifies hostname and public-CA trust, and parses X.509 fields and fingerprints. Enriches the measurement with CAA and certificate-policy checks. Failures remain explicit.

Why It's Useful

Certificate monitoring is critical for preventing HTTPS outages — expired certificates cause immediate user-facing errors. SAN analysis reveals related subdomains for asset inventory, issuer tracking ensures only authorized Certificate Authorities (per CAA records) are issuing certificates, and certificate type classification helps verify compliance with organizational security policies. CT log integration provides an independent verification source.

Use Cases

DevOps Engineer

Certificate Expiry Monitoring

Monitor active certificates approaching expiry to prevent service outages caused by expired SSL/TLS certificates.

Prevent HTTPS outages by catching certificate expirations before they impact users.

Penetration Tester

Subdomain Discovery

Enumerate subdomains by analyzing Subject Alternative Names (SANs) in the active certificate.

Discover related domains and subdomains covered by the same certificate.

Security Engineer

Certificate Configuration Audit

Verify certificate key size, algorithm strength, and issuer comply with organizational security policies.

Ensure certificate configurations meet security standards (e.g., RSA 2048+, SHA-256+).

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to analyze the SSL/TLS certificate forExample: example.com
portquerynumberOptionalPort to connect to (default: 443)Example: 443

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe queried domain
portnumberThe port used for connection
issued_toobjectCertificate subject (common_name, organization, country)
issued_byobjectCertificate issuer (common_name, organization, country)
validityobjectValidity period (not_before, not_after, days_remaining, is_valid, is_expiring_soon). is_expiring_soon uses an adaptive window scaled to the cert lifetime so short-lived 47/100/200-day certs are not perpetually flagged.
subject_alt_namesarraySubject Alternative Names (SANs) covered by the certificate
keyobjectKey type obtained from the served certificate, with detailed algorithm and size in parsed.public_key.
chainarraySubject and issuer information for certificates captured from the server handshake.
is_self_signedbooleanWhether the certificate is self-signed
tls_verifiedbooleanWhether the served certificate passes hostname and public-CA trust verification on the probe.
is_wildcardbooleanWhether the certificate is a wildcard
is_evbooleanWhether the certificate is Extended Validation
ev_notestring | nullSet when is_ev is true. Explains that EV no longer surfaces in browser UI (Chrome 77 / Firefox 70 moved EV out of the omnibox in 2019).
certificate_typestring | nullCertificate policy classification (DV, OV, EV or null) based on parsed certificate evidence.
lifetime_complianceobjectCA/B Forum Ballot SC081v3 compliance: { applies, max_allowed_days, lifetime_days, compliant, warning }. Warns when the cert exceeds the current limit or will exceed an upcoming one (398 → 200d on 2026-03-15 → 100d on 2027-03-15 → 47d on 2029-03-15).
caaobjectCAA record check (RFC 8659): { queried, records[], has_records, issuer_authorized, issuewild_set, iodef_set, account_uri_constrained, note }. Cross-references the cert's issuer against published CAA issue/issuewild records.
parsedobject | nullX.509 parse of the actually served leaf: public key, signature algorithm, fingerprints, revocation endpoints, Must-Staple, SCT count, extensions and serial number.
parsed_errorstring | nullReason parsing the served X.509 certificate failed, or null when parsing succeeded.
notestringLimitations and methodology note
server_sent_chainbooleanWhether the chain came from the actual server handshake.
chain_truncatedbooleanWhether capture exceeded its bounded chain/output limit.

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/ssl?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/ssl?domain=example.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/ssl?domain=example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full SSL Certificates guide

Learn the concepts, choose a practical workflow, and interpret the observations from SSL Certificates before acting on them. Run supported checks via MCP or through REST.

Read the guide →

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the SSL Certificates endpoint live in the playground.

SSL Certificates API Reference | EdgeDNS