SSL Check API - inspect TLS certificate details over HTTP
Need to inspect SSL certificate details from your app, script, or CI job without shelling out to openssl or building your own TLS parsing? Use the TinyUtils SSL Check API.
The problem
Checking certificate expiry manually is tedious. The output from openssl s_client is not ideal for scripts or applications - it requires parsing free-form text and handling connection setup yourself.
Monitoring SANs, issuer, and expiry dates in code usually means pulling in extra libraries or shelling out and grepping the result. The TinyUtils SSL Check API returns clean JSON from a single GET request.
Quick solution
Send a GET request to /api/ssl-check with the hostname you want to inspect. You get back the full certificate details in one structured response.
curl
curl "https://tinyutils.dev/api/ssl-check?hostname=example.com"
Example response
{
"ok": true,
"hostname": "example.com",
"normalizedHostname": "example.com",
"certificate": {
"valid": true,
"subject": "CN=example.com",
"issuer": "DigiCert Inc",
"valid_from": "2026-01-01T00:00:00.000Z",
"valid_to": "2026-12-31T23:59:59.000Z",
"days_remaining": 271,
"sans": ["example.com", "www.example.com"]
},
"meta": {
"lookupTimeMs": 84,
"cached": false,
"rateLimitedScope": "global"
},
"error": null
}Use cases
- •Monitor certificate expiry dates across production hosts
- •Validate certificates after a migration or renewal
- •Confirm SAN coverage for subdomains
- •Check the issuer on production hosts
- •Build basic TLS health checks into CI or cron jobs
JavaScript example
JavaScript (fetch)
const res = await fetch(
"https://tinyutils.dev/api/ssl-check?hostname=example.com"
);
const data = await res.json();
if (!data.ok) {
console.error("SSL check failed:", data.error);
} else {
const { valid, days_remaining, issuer, sans } = data.certificate;
console.log("Valid:", valid);
console.log("Days remaining:", days_remaining);
console.log("Issuer:", issuer);
console.log("SANs:", sans.join(", "));
}See also
Try the SSL Check tool
Enter any hostname and inspect its TLS certificate instantly.
Open SSL Check →