Inspect SSL/TLS certificate and configuration
/ssl/v1/inspectPerform a live read-only TLS handshake against a public hostname and inspect the leaf certificate, full presented chain, expiration, hostname match, trust verification, TLS version, cipher suite, and security grade. For HTTP-capable TLS services on any allowlisted port, also read bounded HEAD / response headers on the same connection without following redirects or reading bodies. HTTP failures do not affect the TLS result or grade. Completed handshakes count as one billable request; invalid input, unsafe addresses, timeouts, and unreachable hosts are not charged.
Parameters
This operation has no published parameters.
Request body
Request fields
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | No | Public domain or hostname to inspect (Unicode or Punycode). |
include_pem | boolean | No | When true, include PEM-encoded certificates on each chain entry and full concatenated chain_pem (default false). |
port | integer | No | Optional TLS port (default 443; allowed: 443, 8443, 465, 993, 995, 636, 853). |
JSON model
Illustrative JSON shape generated from the published schema. Field values are examples, not live results.
{
"domain": "antapi.dev",
"include_pem": false,
"port": 443
}Success response200
Fields inside data
| Name | Type | Required | Description |
|---|---|---|---|
certificate | object | No | Leaf server certificate details. |
certificate.crl_distribution_points | string[] | No | CRL distribution point URLs declared in the certificate. |
certificate.days_remaining | integer | No | Whole days remaining until expiration (negative if already expired). |
certificate.expired | boolean | No | Whether the certificate is past its NotAfter timestamp. |
certificate.is_ca | boolean | No | Whether the certificate Basic Constraints mark it as a CA. |
certificate.issuer | object | No | Certificate issuer identity. |
certificate.issuer.common_name | string | No | Certificate Common Name (CN). |
certificate.issuer.country | string[] | No | Country (C) attributes. |
certificate.issuer.organization | string[] | No | Organization (O) attributes. |
certificate.issuer.organizational_unit | string[] | No | Organizational Unit (OU) attributes. |
certificate.issuing_certificate_urls | string[] | No | CA Issuers URLs declared in Authority Information Access. |
certificate.not_after | string | No | Certificate expiration time in RFC3339 UTC. |
certificate.not_before | string | No | Certificate validity start time in RFC3339 UTC. |
certificate.not_yet_valid | boolean | No | Whether the certificate NotBefore timestamp is in the future. |
certificate.ocsp_servers | string[] | No | OCSP responder URLs declared in Authority Information Access. |
certificate.pem | string | No | PEM-encoded X.509 certificate; returned only when include_pem is true. |
certificate.public_key_algorithm | string | No | Public key algorithm (RSA, ECDSA, Ed25519). |
certificate.public_key_bits | integer | No | Public key size in bits. |
certificate.sans | string[] | No | Subject Alternative Names (DNS names and IP SANs). |
certificate.self_signed | boolean | No | Whether the certificate is self-signed. |
certificate.serial_number | string | No | Certificate serial number in uppercase hexadecimal. |
certificate.sha256_fingerprint | string | No | Lowercase SHA-256 fingerprint of the DER-encoded certificate. |
certificate.signature_algorithm | string | No | X.509 signature algorithm. |
certificate.subject | object | No | Certificate subject identity. |
certificate.subject.common_name | string | No | Certificate Common Name (CN). |
certificate.subject.country | string[] | No | Country (C) attributes. |
certificate.subject.organization | string[] | No | Organization (O) attributes. |
certificate.subject.organizational_unit | string[] | No | Organizational Unit (OU) attributes. |
certificate.version | integer | No | X.509 certificate version number. |
chain | object[] | No | Full certificate chain presented by the server starting with the leaf certificate. |
chain[].crl_distribution_points | string[] | No | CRL distribution point URLs declared in the certificate. |
chain[].days_remaining | integer | No | Whole days remaining until expiration (negative if already expired). |
chain[].expired | boolean | No | Whether the certificate is past its NotAfter timestamp. |
chain[].is_ca | boolean | No | Whether the certificate Basic Constraints mark it as a CA. |
chain[].issuer | object | No | Certificate issuer identity. |
chain[].issuer.common_name | string | No | Certificate Common Name (CN). |
chain[].issuer.country | string[] | No | Country (C) attributes. |
chain[].issuer.organization | string[] | No | Organization (O) attributes. |
chain[].issuer.organizational_unit | string[] | No | Organizational Unit (OU) attributes. |
chain[].issuing_certificate_urls | string[] | No | CA Issuers URLs declared in Authority Information Access. |
chain[].not_after | string | No | Certificate expiration time in RFC3339 UTC. |
chain[].not_before | string | No | Certificate validity start time in RFC3339 UTC. |
chain[].not_yet_valid | boolean | No | Whether the certificate NotBefore timestamp is in the future. |
chain[].ocsp_servers | string[] | No | OCSP responder URLs declared in Authority Information Access. |
chain[].pem | string | No | PEM-encoded X.509 certificate; returned only when include_pem is true. |
chain[].public_key_algorithm | string | No | Public key algorithm (RSA, ECDSA, Ed25519). |
chain[].public_key_bits | integer | No | Public key size in bits. |
chain[].sans | string[] | No | Subject Alternative Names (DNS names and IP SANs). |
chain[].self_signed | boolean | No | Whether the certificate is self-signed. |
chain[].serial_number | string | No | Certificate serial number in uppercase hexadecimal. |
chain[].sha256_fingerprint | string | No | Lowercase SHA-256 fingerprint of the DER-encoded certificate. |
chain[].signature_algorithm | string | No | X.509 signature algorithm. |
chain[].subject | object | No | Certificate subject identity. |
chain[].subject.common_name | string | No | Certificate Common Name (CN). |
chain[].subject.country | string[] | No | Country (C) attributes. |
chain[].subject.organization | string[] | No | Organization (O) attributes. |
chain[].subject.organizational_unit | string[] | No | Organizational Unit (OU) attributes. |
chain[].version | integer | No | X.509 certificate version number. |
chain_pem | string | No | Concatenated PEM-encoded certificate chain (leaf to root/intermediate); returned only when include_pem is true. |
connection | object | No | Negotiated TLS handshake parameters. |
connection.alpn | string | No | Negotiated ALPN application protocol (e.g. h2, http/1.1) when advertised. |
connection.cipher_suite | string | No | Negotiated TLS cipher suite name. |
connection.fetched_at | string | No | UTC timestamp when the TLS handshake completed. |
connection.handshake_ms | integer | No | TCP dial and TLS handshake latency in milliseconds. |
connection.ip | string | No | Public IP address connected to for the TLS handshake. |
connection.ocsp_stapled | boolean | No | Whether the server stapled a non-empty OCSP response during the handshake. |
connection.port | integer | No | TCP port connected to. |
connection.tls_version | string | No | Negotiated TLS protocol version. |
domain | object | No | Input and normalized target domain and port. |
domain.input | string | No | Original input domain. |
domain.normalized | string | No | ASCII Punycode hostname used for SNI and certificate verification. |
domain.port | integer | No | TLS port inspected. |
domain.unicode | string | No | Unicode display form of the domain. |
http | object | No | Best-effort HEAD response headers on the same TLS connection; does not affect the SSL score. |
http.error_code | string | No | Stable HTTP diagnostic error code; TLS inspection remains successful. Values: ["timeout","request_failed"] |
http.headers | object[] | No | Response headers sorted by name; empty when unavailable or not applicable. |
http.headers[].name | string | No | Canonical HTTP response header name. |
http.headers[].values | string[] | No | All values returned for this header, preserving duplicates. |
http.method | string | No | HTTP request method (HEAD). |
http.protocol | string | No | HTTP response protocol version, or negotiated non-HTTP ALPN when not applicable. |
http.status | string | No | HTTP header availability based on the service protocol, independent of the allowlisted port number. Values: ["available","unavailable","not_applicable"] |
http.status_code | integer | No | HTTP response status code, including redirects and errors. |
http.url | string | No | HTTPS root URL requested with HEAD; redirects are not followed. |
summary | object | No | Overall SSL/TLS status, grade, score, and prioritized issues. |
summary.grade | string | No | Overall SSL/TLS security grade (A, B, C, D, or F). Values: ["A","B","C","D","F"] |
summary.issues | object[] | No | Structured security findings sorted by severity. |
summary.issues[].code | string | No | Stable machine-readable issue code. |
summary.issues[].component | string | No | Affected component: certificate, chain, protocol, or revocation. Values: ["certificate","chain","protocol","revocation"] |
summary.issues[].message | string | No | Concise human-readable explanation. |
summary.issues[].severity | string | No | Issue severity: high, medium, low, or info. Values: ["high","medium","low","info"] |
summary.score | integer | No | Numeric score from 0 to 100. |
summary.status | string | No | Overall certificate status: valid, expiring_soon, or invalid. Values: ["valid","expiring_soon","invalid"] |
verification | object | No | Certificate chain and hostname verification status. |
verification.chain_length | integer | No | Number of certificates presented by the server in the TLS handshake. |
verification.chain_valid | boolean | No | Whether the presented certificate chain verifies to a trusted root CA. |
verification.error | string | No | Concise verification failure reason when trusted is false. |
verification.hostname_matches | boolean | No | Whether the leaf certificate SAN/CN matches the queried hostname. |
verification.trusted | boolean | No | Whether the leaf certificate verifies against trusted root CAs and matches the queried hostname. |
JSON model
Illustrative JSON shape generated from the published schema. Field values are examples, not live results.
{
"code": 0,
"data": {
"certificate": {
"crl_distribution_points": [
"string"
],
"days_remaining": 59,
"expired": false,
"is_ca": false,
"issuer": {
"common_name": "antapi.dev",
"country": [
"string"
],
"organization": [
"string"
],
"organizational_unit": [
"string"
]
},
"issuing_certificate_urls": [
"string"
],
"not_after": "2027-01-30T00:00:00Z",
"not_before": "2026-11-01T00:00:00Z",
"not_yet_valid": false,
"ocsp_servers": [
"string"
],
"pem": "string",
"public_key_algorithm": "ECDSA",
"public_key_bits": 256,
"sans": [
"string"
],
"self_signed": false,
"serial_number": "04A1B2C3D4E5",
"sha256_fingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"signature_algorithm": "ECDSA-SHA256",
"subject": {
"common_name": "antapi.dev",
"country": [
"string"
],
"organization": [
"string"
],
"organizational_unit": [
"string"
]
},
"version": 3
},
"chain": [
{
"crl_distribution_points": [
"string"
],
"days_remaining": 59,
"expired": false,
"is_ca": false,
"issuer": {
"common_name": "antapi.dev",
"country": [
"string"
],
"organization": [
"string"
],
"organizational_unit": [
"string"
]
},
"issuing_certificate_urls": [
"string"
],
"not_after": "2027-01-30T00:00:00Z",
"not_before": "2026-11-01T00:00:00Z",
"not_yet_valid": false,
"ocsp_servers": [
"string"
],
"pem": "string",
"public_key_algorithm": "ECDSA",
"public_key_bits": 256,
"sans": [
"string"
],
"self_signed": false,
"serial_number": "04A1B2C3D4E5",
"sha256_fingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"signature_algorithm": "ECDSA-SHA256",
"subject": {
"common_name": "antapi.dev",
"country": [
"string"
],
"organization": [
"string"
],
"organizational_unit": [
"string"
]
},
"version": 3
}
],
"chain_pem": "string",
"connection": {
"alpn": "h2",
"cipher_suite": "TLS_AES_128_GCM_SHA256",
"fetched_at": "2026-12-02T01:00:00Z",
"handshake_ms": 82,
"ip": "104.21.48.10",
"ocsp_stapled": true,
"port": 443,
"tls_version": "TLS 1.3"
},
"domain": {
"input": "antapi.dev",
"normalized": "antapi.dev",
"port": 443,
"unicode": "antapi.dev"
},
"http": {
"error_code": "timeout",
"headers": [
{
"name": "string",
"values": [
"string"
]
}
],
"method": "string",
"protocol": "string",
"status": "available",
"status_code": 0,
"url": "string"
},
"summary": {
"grade": "A",
"issues": [
{
"code": "CERT_EXPIRING_SOON",
"component": "certificate",
"message": "Certificate expires in 14 days.",
"severity": "medium"
}
],
"score": 100,
"status": "valid"
},
"verification": {
"chain_length": 2,
"chain_valid": true,
"error": "",
"hostname_matches": true,
"trusted": true
}
},
"error": ""
}