mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Reread TLS certificates in the backround #3270
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#3270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @laurentftech on GitHub (Dec 19, 2021).
Originally assigned to: @EugeneOne1 on GitHub.
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Issue Details
I am using Caddyserver to renew automatically my TLS certificates. It seems they are renewed every 12 hours which very small overlapping in validity (I don't know if it is possible to change that). After 12 hours when I try to login the AGH front end, Safari warns me that the certificate has expired and that the connection is not safe. If I open the site anyway, the first page tells me that certificate has expired (see attached).
The renewed certificate is only taken into account when I go to the encryption setting page (where I have the path to the certificate and key).
Expected Behavior
Renewed TLS certificate to be taken into account in the background.
Actual Behavior
Renewed TLS certificate seems to be only taken into account when opening the encryption settings page.
Screenshots
Screenshot:
Additional Information
@ainar-g commented on GitHub (Dec 20, 2021):
The TLS certs are currently only updated when you either resave the encryption settings from the UI, or when you send
SIGHUPto AGH.@ameshkov, do we want some kind of background schedule to reload TLS certs in the future design / refactoring?
@ameshkov commented on GitHub (Dec 27, 2021):
@ainar-g yeah, it makes sense to me.
@nuka-cola commented on GitHub (Apr 10, 2023):
I know that this is a slightly off-topic question, but if I am using Adguard-Home via Snap, where is the ideal place to store the let's encrypt certificates so that the snap container has access?
@ameshkov commented on GitHub (Apr 16, 2023):
@nuka-cola
Somewhere inside this directory:
/var/snap/adguard-home/currentFor AGH running in a snap this would be the cwd directory.
I.e. you can specify the path to the certificate as
./cert.crt@xlionjuan commented on GitHub (May 13, 2025):
This is become more important when Let's Encrypt's 6 day certificate become available.
https://letsencrypt.org/2025/01/16/6-day-and-ip-certs/
@xlionjuan commented on GitHub (Jul 6, 2025):
Let's Encrypt will ship IP certificates and 6 days of certificate latter this year.
https://letsencrypt.org/2025/07/01/issuing-our-first-ip-address-certificate/
@xlionjuan commented on GitHub (Dec 3, 2025):
Let's Encrypt will ship IP certificates and 6 days of certificate soon, this is mandatory.
@cigarzh commented on GitHub (Jan 14, 2026):
I’m having the same problem.
@EugeneOne1 commented on GitHub (Feb 9, 2026):
@laurentftech, and anyone else who's interested: We've finally implemented background TLS certificate and key refreshing. This feature is currently available in the latest beta release (
v0.108.0-b.82). Could you please try it out and provide some feedback?@xlionjuan commented on GitHub (Feb 9, 2026):
will volumes mount as
:roaffect filesystem watching? Or how the reload triggered?@EugeneOne1 commented on GitHub (Feb 10, 2026):
@xlionjuan, Docker installations will only detect changes to the file system if you mount the entire directory. However, the
:romodifier is fine.@xlionjuan commented on GitHub (Feb 10, 2026):
I'm mount as directory, not single file, but it seems not detected the file changes.
@xlionjuan commented on GitHub (Feb 10, 2026):
I'm mount as directory, not single file, but it seems not detected the file changes.
@xlionjuan commented on GitHub (Feb 10, 2026):
I'm creating container with
read_only: truewill the detect mechanism need to have the ability to write somewhere?@EugeneOne1 commented on GitHub (Feb 10, 2026):
@xlionjuan, as far as I know, the detection mechanism shouldn't write anything. Unfortunately, we'll need more details about your setup. Could you please file a separate issue with additional information about the environment in which you're running AdGuard Home?
@EugeneOne1 commented on GitHub (Feb 19, 2026):
This feature is available in version
v0.107.72. Please file separate issues for any problems. We'll close this issue for now.