1 # Minica can provide a CA key and cert, plus a key
2 # and cert for our fake CA server's Web Front End (WFE).
4 pkgs ? import <nixpkgs> {},
6 mkDerivation ? pkgs.stdenv.mkDerivation
9 conf = import ./snakeoil-certs.nix;
13 buildInputs = [ (minica.overrideAttrs (old: {
15 sed -i 's_NotAfter: time.Now().AddDate(2, 0, 30),_NotAfter: time.Now().AddDate(20, 0, 0),_' main.go
23 --ca-cert ca.cert.pem \
30 mv ${domain}/key.pem $out/${domain}.key.pem
31 mv ${domain}/cert.pem $out/${domain}.cert.pem