nixos/tests/acme/server: patch certificate generation for longer validity

ajs124 7274df35 2e268225

Changed files
+5 -1
nixos
tests
common
acme
+5 -1
nixos/tests/common/acme/server/generate-certs.nix
···
domain = conf.domain;
in mkDerivation {
name = "test-certs";
-
buildInputs = [ minica ];
+
buildInputs = [ (minica.overrideAttrs (old: {
+
prePatch = ''
+
sed -i 's_NotAfter: time.Now().AddDate(2, 0, 30),_NotAfter: time.Now().AddDate(20, 0, 0),_' main.go
+
'';
+
})) ];
phases = [ "buildPhase" "installPhase" ];
buildPhase = ''