dromara / dromara/domain-admin
CDN/多ip 域名 获取证书剩余天数异常
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 389
- PR merge metrics
- No merged PRs in 30d
Description

**背景及问题**
如图,有多个 CDN 域名,证书会检测到最后1个主机时,获取证书天数发现异常,更新某个主机的剩余天数为0,最后导致该证书整体的剩余天数为0,最终导致每天报警通知异常。
相关[issue](https://github.com/dromara/domain-admin/issues/122),但issuse一直是open状态
看[版本升级日志](https://domain-admin.readthedocs.io/zh-cn/latest/manual/changelog.html),v1.6.55(2024-11-01) 修复了多ip证书获取问题,但实际部署的版本为v1.6.65(2025-03-13),问题依然存在。
**解决思路:**
当一个域名存在多台主机时,当所有主机获取天数都异常的时,该域名的剩余天数为0,否则取时间最长的那个主机的剩余天数做为该域名的剩余天数,否则报警器目前得到该域名的剩余天数为0,提示过期,实则误报。
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the multi-host certificate remaining-days calculation described in issue #177 and compare it with related issue #122 and the v1.6.55 changelog entry. Verify the result for domains with several CDN hosts and confirm that the aggregate value and daily expiry alerts no longer report zero when at least one host has a valid remaining period.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100