diff options
author | ajs124 <git@ajs124.de> | 2022-11-21 18:17:55 +0100 |
---|---|---|
committer | ajs124 <git@ajs124.de> | 2022-11-21 18:17:55 +0100 |
commit | 7274df353c0e98c4cfb2e72daa51c87eb2c3cda8 (patch) | |
tree | c57de437110a157fa1d5ba243945616f96792a0a /nixos/tests/common | |
parent | 2e268225fa44aeeda2f56e86e21aef7c27a26508 (diff) |
nixos/tests/acme/server: patch certificate generation for longer validity
Diffstat (limited to 'nixos/tests/common')
-rw-r--r-- | nixos/tests/common/acme/server/generate-certs.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/common/acme/server/generate-certs.nix b/nixos/tests/common/acme/server/generate-certs.nix index cd8fe0dffca17..85c751c56ad5c 100644 --- a/nixos/tests/common/acme/server/generate-certs.nix +++ b/nixos/tests/common/acme/server/generate-certs.nix @@ -10,7 +10,11 @@ let 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 = '' |