设置自动SSL监控后,系统将定期检查您的域名并自动申请/续期SSL证书。
立即检查证书状态并续期即将过期或已过期的证书。系统会智能判断是否需要续期。
查看和管理您的自动SSL任务。系统会按照设定的间隔自动检查并续期证书。
暂无自动SSL任务
检查您的域名在Cloudflare上的状态和配置信息。
// JavaScript 调用示例 - 手动申请
const response = await fetch('/api/add-ssl', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: '[email protected]',
zoneId: 'your-zone-id',
apikey: 'your-api-key',
enabled: true,
ca: 'ssl_com',
auto_renew: true
}),
});
// 自动SSL设置
const autoResponse = await fetch('/api/auto-ssl', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: '[email protected]',
zone_id: 'your-zone-id',
api_key: 'your-api-key',
domains: ['example.com', 'sub.example.com'],
check_interval_days: 7,
certificate_authority: 'ssl_com'
}),
});
// 即时续期
const renewResponse = await fetch('/api/immediate-renew', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: '[email protected]',
zone_id: 'your-zone-id',
api_key: 'your-api-key',
certificate_authority: 'ssl_com'
}),
});
// 获取任务列表
const tasksResponse = await fetch('/api/auto-ssl');
const tasks = await tasksResponse.json();
// 检查域名状态
const statusResponse = await fetch('/api/domain-status', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: '[email protected]',
zone_id: 'your-zone-id',
api_key: 'your-api-key'
}),
});
// 获取证书信息
const certResponse = await fetch('/api/certificate-info', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: '[email protected]',
zone_id: 'your-zone-id',
api_key: 'your-api-key'
}),
});
// 健康检查
const healthResponse = await fetch('/api/health');
GET 请求示例:
https://worker地址/?zoneId=...&email=...&apikey=...&enabled=true&ca=ssl_com