SSL Certificate Monitoring & Change Alerts
Track certificate results over time with private snapshots and change alerts
Create a domain-ssl watch to track certificate results and expiration fields on a schedule. Use json_diff to detect supported changes and review stored snapshots. Start with daily Free-supported watches, then upgrade for faster schedules.
Implementation example by the EdgeDNS team · Updated
The Challenge
Teams need a dated record of certificate changes and a way to investigate renewal issues. A scheduled response comparison helps review changes; expiry thresholds require application logic beyond the current watch alert strategies.
The Solution
Create a domain-ssl watch and select json_diff to compare certificate responses. Review expiration fields in stored snapshots and investigate alerts when returned values change. The current watch API supports change strategies rather than a cert_expiry_alert_days option. Free includes 5 watches checked daily; Developer includes 50 from 30 minutes; Pro includes 250 from 5 minutes. Endpoint tier restrictions apply. Scheduled checks share your monthly request allowance. Pair this with the SSL guide and certificate chain guide for deeper on-demand checks.
Endpoints Used
Combine these EdgeDNS endpoints to build this solution.
/v1/watchesMonitoring API referenceCreate Watch: Create a domain-ssl watch with json_diff change alerts
/v1/watches/:id/alertsMonitoring API referenceWatch Alerts: View recorded change alerts for this certificate watch
/v1/watches/:id/snapshotsMonitoring API referenceCheck Results: View all check results including certificate check outcomes
/v1/domain/sslAPI referenceSSL Certificates: Analyze active SSL/TLS certificate details
What this workflow helps you do
Certificate changes in watch history
Use json_diff to compare supported certificate response fields, including expiration information.
Schedules from your plan
Free includes 5 watches checked daily; Developer includes 50 from 30 minutes; Pro includes 250 from 5 minutes. Endpoint tier restrictions apply. Scheduled checks share your monthly request allowance.
Private certificate snapshots
Stored watch snapshots and alerts remain scoped to your organization.
Code Example
Create a daily certificate watch and inspect alerts
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const response = await fetch('https://api.edgedns.dev/v1/watches', {
method: 'POST',
headers: { ...headers, 'Content-Type': 'application/json' },
body: JSON.stringify({
"domain": "example.com",
"endpoint_id": "domain-ssl",
"endpoint_params": {},
"interval_minutes": 1440,
"alert_enabled": true,
"alert_strategy": "json_diff",
"alert_config": {},
"notification_emails": [
"security@example.com"
]
})
});
const created = await response.json();
if (!response.ok) throw new Error(created.error?.message ?? 'Watch creation failed');
// After subsequent scheduled checks, inspect this watch's alerts.
const historyResponse = await fetch(
'https://api.edgedns.dev/v1/watches/' + encodeURIComponent(created.data.id) + '/alerts',
{ headers }
);
const history = await historyResponse.json();
if (!historyResponse.ok) throw new Error(history.error?.message ?? 'History request failed');
console.log(history.data);Learn More
Explore industry standards and best practices related to this use case.
Ready to build SSL Certificate Monitoring & Change Alerts?
Get started with 200 free API requests per month. No credit card required.
Other Use Cases
Website Uptime & Availability Monitoring
Scheduled reachability checks with stored snapshots and status-change alerts
Brand Protection / LegalDomain Portfolio Protection
Investigate lookalike domains and changes to domains you own
SRE / Security EngineerDNS & Infrastructure Change Monitoring
Detect unauthorized DNS changes, certificate swaps, and WHOIS transfers with private, continuous monitoring