NixOS ACME / LetsEncrypt | 97 Members | |
| Another day, another cert renewal | 39 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 May 2025 | ||
| 10:57:09 | ||
| 23 May 2025 | ||
Is there an easy way to disable acme for test servers/vms? I know nixos-rebuild has a profile system, would that be how you do it? | 00:15:39 | |
| not an acme specific question | 00:36:18 | |
you would need to nuke security.acme.certs to an empty attreset | 00:37:25 | |
and also things like enableACME on nginx | 00:37:37 | |
| #users:nixos.org | 00:37:44 | |
| * #users:nixos.org is the room tbh | 00:37:49 | |
woobilicious: Ditto what hexa said - however you can DIY your own "disable all ACME" option. Just add a config option of your own (config.woobilicious.enableACME for example), then predicate your security.acme.certs and enableACME on that wherever you have it declared | 18:55:38 | |
| I assume you're dealing with a test vm, is the root of this issue that ACME is looking for internet access to renew certs whilst testing your real system config? I personally don't know how to deal with that just for the test system, but IIRC there is some flag/marker that you are in a test vm? | 18:57:06 | |
| 24 May 2025 | ||
| m1cr0man: Yeah I'm wanting to use nixos-rebuild test-vm, I used to use it before I hooked up ACME but I knew instantly it would cause issues, so I just started testing in production lol. My real issue is that I still need certs for some of my config to work correctly. I guess I'll have to look in to profile system and how ACME works to have it generate certs but not try sign them. | 03:49:08 | |
| I want to add anubis to my server, so it's going to be a whole ordeal getting the proxy setup and the certs working correctly. | 03:54:13 | |
In reply to @woobilicious:matrix.orgThis might be overkill for your use case, but we set up an additional acme and name_server nodes that we can use to replace the real acme servers in tests | 08:13:07 | |
| The souce is here: https://git.foss-syndicate.org/vhack.eu/nixos-server/tree/tests/common/acme | 08:13:29 | |
| oh interesting, yeah might be a bit overkill, but maybe it'll be some good insperation. | 08:15:33 | |
| I could probably just disable the acme renewal service. | 08:17:33 | |
| 25 May 2025 | ||
In reply to @soispha:vhack.euThat's nice. Seems to be based on the acme tests in nixpkgs? | 11:36:45 | |
In reply to @m1cr0man:m1cr0man.comYes, initially I used the acme files directly, but had to vendor and significantly alter them to work as a drop in server (i.e. I did not understand how nixpkgs test acme stuff sets the CA root from pebble and they seemed to lack the dns server support) | 14:58:10 | |
I never considered this use case. I might look into making the test suite stuff reusable and having some form of support for nixos-ebuild build-vm | 19:19:31 | |
| 27 May 2025 | ||
| 08:58:16 | ||
| 23:45:05 | ||
| 7 Jun 2025 | ||
| 22:46:32 | ||
| 23:49:05 | ||
| 9 Jun 2025 | ||
| 13:15:35 | ||
| 20:46:49 | ||
| 12 Jun 2025 | ||
| 11:48:58 | ||
| 27 Jun 2025 | ||
| 00:55:22 | ||
| 00:56:28 | ||