Commit 7274df35 authored by ajs124's avatar ajs124
Browse files

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

parent 2e268225
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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 = ''