---
name: certificate-expiry
description: "Certificate Expiry Checker (Certificate Expiry Checker) via devops.majbase.com's free public API, no key required. Keywords: ssl certificate expiry check, when does cert expire, tls expiration, сертификат изтича."
---

# Certificate Expiry Checker

Certificate Expiry Checker. Calls devops.majbase.com's free public API — no API key or authentication required.

## Endpoints

```
GET/POST https://devops.majbase.com/certificate-expiry/api
```

```
POST https://devops.majbase.com/certificate-expiry/api-pem
```

## Request / Response

```
API: GET or POST /certificate-expiry/api
  domain=<string>  (required)
Returns {"hostname", "common_name", "issuer", "valid_from", "valid_until",
"days_remaining", "is_expired", "is_expiring_soon", "subject_alt_names",
"serial_number", "fingerprint_sha256", "signature_algorithm",
"ocsp_urls", "ca_issuer_urls", "crl_urls"}, or {"error": "..."}.
```

```
API: POST /certificate-expiry/api-pem
  pem=<string>  (required; a PEM-encoded certificate)
Returns the same fields as /api, minus "hostname", or {"error": "..."}.
```

## Example

```bash
curl -sS "https://devops.majbase.com/certificate-expiry/api?domain=example.com"
```

```bash
curl -sS -X POST https://devops.majbase.com/certificate-expiry/api-pem --data-urlencode "pem@cert.pem"
```

## Notes

- No API key or authentication required.
- Full interactive tool: https://devops.majbase.com/certificate-expiry/
