louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.32k stars 5.4k forks source link

Status page https certificate expiration #5313

Open plegrand1 opened 2 weeks ago

plegrand1 commented 2 weeks ago

⚠️ Please verify that this question has NOT been raised before.

🛡️ Security Policy

📝 Describe your problem

Hello, I'm having a small problem checking the expiry of an https certificate. This one has a particularity in that it is self-signed. On Kuma's main page, it appears with the number of days remaining. image However, on the status page, the number of days remaining does not appear. image Is this a bug or a misconfiguration on my part? Thank you for your help. Best regards,

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.15

💻 Operating System and Arch

Debian

🌐 Browser

Firefox

🖥️ Deployment Environment

apio-sys commented 2 weeks ago

For the expiration date to appear on the status page, you need to switch "Show Certificate Expiry" to on on the bottom left when editing the status page. Screenshot from 2024-11-05 16-45-16

plegrand1 commented 2 weeks ago

That's what I did. The expiration date for non-self-signed certificates appears correctly with the number of days remaining. But for self-signed certificates this information doesn't appear.

apio-sys commented 2 weeks ago

It works for me but the expiry notice shows below the monitor with the wording "Expiration Cert SSL: nn jours" if running in French. Yours shows "Certificats HTTPS". Looks like we are not running the same version? (I have 1.23.15 also). But haven't tested with self-signed. Let me try that in a bit.

apio-sys commented 2 weeks ago

Indeed, I could reproduce, with a self-signed cert the remaining days do not show anymore in the Status Page. We should either fix it or document that such certs will not show on status pages (since this is more a "customer facing" feature we might not want to show self-signed certs here?). Could find a why in the documentation. I guess this comes from here /src/components/PublicGroupList.vue but I haven't a dev environment running right now to test further.