!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

98 Members
Another day, another cert renewal42 Servers

Load older messages


SenderMessageTime
19 Feb 2025
@emilazy:matrix.orgemilyoneshots are only considered started after they complete, right?16:59:29
@emilazy:matrix.orgemilyso the timer can probably start two of them at once? which would be bad. we should probably not be using oneshot16:59:40
@hexa:lossy.networkhexa

the service manager will consider the unit up after the main process exits

17:00:16
@hexa:lossy.networkhexa *

similar to simple; however, the service manager will consider the unit up after the main process exits

17:00:26
@emilazy:matrix.orgemilyright17:00:34
@emilazy:matrix.orgemilywell I dunno, it's probably safe to specify like 12–24 hours assuming that the timer will not try to run lego again if it's still running from the previous timer run17:00:54
@emilazy:matrix.orgemilyI don't understand oneshot well enough to say whether that's the case17:01:00
@hexa:lossy.networkhexa18h + AccuracySecs17:01:33
@hexa:lossy.networkhexawhich would be between 18 and 22 hours17:01:43
@hexa:lossy.networkhexaor 19-2317:02:01
@emilazy:matrix.orgemilyI think the only risk of a long value is the timer triggering again and starting lego again17:02:08
@emilazy:matrix.orgemilyI just don't know if that's how it actually works17:02:11
@emilazy:matrix.orgemilyI think systemd keeps track of services that are "starting" but not started17:02:19
@emilazy:matrix.orgemilyso it may not try to run lego again if it's blocking from before17:02:27
@hexa:lossy.networkhexa

Note that in case the unit to activate is already active at the time the timer elapses it is not restarted, but simply left running.

https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html

17:05:02
@emilazy:matrix.orgemilybut oneshots aren't "active" until they finish, right?17:11:56
@emilazy:matrix.orgemilyor maybe they're "active" but not "running"?17:12:05
@hexa:lossy.networkhexa they should be in activating while running iirc 17:19:01
20 Feb 2025
@hexa:lossy.networkhexaok, merged lego 4.22.218:05:34
@hexa:lossy.networkhexaso now we have ari enabled with wait time 018:05:41
@hexa:lossy.networkhexaso at least we'd get immediate cert renewal if within a requested renewal window even if the cert was valid for longer than 30 days18:06:20
@hexa:lossy.networkhexa
   --ari-disable                             Do not use the renewalInfo endpoint (draft-ietf-acme-ari) to check if a certificate should be renewed. (default: false)
18:07:53
@thinkchaos:matrix.orgThinkChaos Did they remove --ari-enable or do they have both now? 😄 18:08:48
@emilazy:matrix.orgemilyis 0 "no wait" or "indefinite"?20:31:12
@hexa:lossy.networkhexano wait aiui20:55:07
@hexa:lossy.networkhexayes, ari is default on now and you can disable it20:55:20
21 Feb 2025
@emilazy:matrix.orgemily

You’ll also want to be sure your ACME client is running frequently - both for the sake of renewing short-lived certificates and so as to take advantage of ACME Renewal Information (ARI). ARI allows Let’s Encrypt to notify your client if it should renew early for some reason. ARI checks should happen at least once per day, and short-lived certificates should be renewed every two to three days, so we recommend having your client run at least once per day.

16:04:44
@emilazy:matrix.orgemilywonder if we should consider moving to 2×/day16:04:52
@emilazy:matrix.orgemily(https://letsencrypt.org/2025/02/20/first-short-lived-cert-issued/)16:04:57
22 Feb 2025
@m1cr0man:m1cr0man.comm1cr0manI mean we only ever had it > 1 day for LE's sake (DDOS) 😅 I don't see why we couldn't do 2x/day. Sorry just catching up on this all now. Was on holidays.00:26:31

Show newer messages


Back to Room ListRoom Version: 6