!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

93 Members
Another day, another cert renewal43 Servers

Load older messages


SenderMessageTime
23 Jul 2021
Room Avatar Renderer.23:23:50
30 Jul 2021
@aanderse:nixos.devaanderse i noticed that the nixos manual has a section on prosody which explains how to use it with ssl certs, but it results in a failure because it doesn't manage cert permissions at all :\ 14:09:53
@aanderse:nixos.devaanderse i'm not sure exactly what i'm supposed to do to have prosody use a ssl cert that i use for other services as well
any hints?
i think until LoadCredentials works well the cert would have group readable permissions
14:12:02
@hexa:lossy.networkhexaloadcredentials copies the certificate and never updates it15:47:30
@hexa:lossy.networkhexanot sure why they thought this would be a good idea15:47:43
@hexa:lossy.networkhexaprosody has a module you need to load so it reloads certificates as well IIRC15:48:01
@andi:kack.itandi-
In reply to @aanderse:nixos.dev
i'm not sure exactly what i'm supposed to do to have prosody use a ssl cert that i use for other services as well
any hints?
i think until LoadCredentials works well the cert would have group readable permissions
set additional groups for the cert: https://github.com/andir/infra/blob/master/config/modules/prosody/default.nix#L330
15:56:25
@aanderse:nixos.devaanderse andi-: ah ok, yeah just a dedicated cert group 16:01:07
@andi:kack.itandi-yeah16:01:21
@andi:kack.itandi-you could try facls again ;-)16:01:40
@aanderse:nixos.devaanderse i mean... i thought thats what acme was 16:01:44
@aanderse:nixos.devaanderseha ha ha16:01:50
@andi:kack.itandi-well but that gives all the services access not just those that should access those keys16:01:59
@aanderse:nixos.devaanderseoh boy... acls + systemd = not a fun time apparently16:02:04
@aanderse:nixos.devaanderseyeah, fair point16:02:13
@andi:kack.itandi-sounds like your kink entirely16:02:18
@aanderse:nixos.devaandersenot mine! forced into it!16:02:31
@aanderse:nixos.devaanderseyou wouldn't believe the things i'm forced into :P16:02:37
1 Aug 2021
@jamie:memes.nzJamie joined the room.08:10:56
8 Aug 2021
@hexa:lossy.networkhexa m1cr0man: merged the hardening pr, you seemed content with it, and I felt I couldn't improve it any further. now for some more real world testing. 13:51:18
@m1cr0man:m1cr0man.comm1cr0manAwesome ok. :) 13:51:32
@m1cr0man:m1cr0man.comm1cr0manI might try updating my server today so14:08:13
@hexa:lossy.networkhexasame14:21:59
@hexa:lossy.networkhexadidn't fail on activation, so that's good 😂14:31:38
17 Aug 2021
@grahamc:nixos.org@grahamc:nixos.orgsometimes when acme does the wrong thing I force a new certificate by rm -rf'ing /var/lib/acme and reboot. this manages to fix everything, but if I just restart the service, `acme-domainname.service, it fails here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/security/acme.nix#L344-L353 what service typically sets this up where a reboot works fine?20:32:26
@grahamc:nixos.org@grahamc:nixos.org I also wonder if there is a good way to communicate that extraLegoFlags isn't the same as adding the same value to bothextraLegoRunFlags and extraLegoRenewFlags (position in the command is different) my naive reading of the options left me thinking it would be the same 20:38:09
@grahamc:nixos.org@grahamc:nixos.org For some backstory I needed to add "--preferred-chain" "ISRG Root X1" to extraLegoRunFlags to get an ipxe-compatible certificate a few months ago. A couple days ago the certificate was renewed without that flag, so I moved it from extraLegoRunFlags to extraLegoFlags -- this didn't work, so then I copied the block and added it to both Run and Renew. To make it stick, I rm -rf'd the acme directory because in the past I've had a hard time making it do what I expected by deleting anything less. 20:42:28
3 Sep 2021
@mbprtpmnr:matrix.orgmbprtpmnr joined the room.04:07:41
5 Sep 2021
@ilkecan:matrix.orgilkecan joined the room.13:04:05
6 Sep 2021
@mbprtpmnr:matrix.orgmbprtpmnrHi everyone.06:16:08

Show newer messages


Back to Room ListRoom Version: 6