aboutsummaryrefslogtreecommitdiff
path: root/pkgs/fakeSSL/default.nix
blob: ec62e79448d9ebc9bc02da7b8e723ade73ce2f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
# Via openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -nodes
{ stdenv }:
stdenv.mkDerivation {
  name = "fakeSSL";
  phases = [ "installPhase" ];
  installPhase = ''
    mkdir -p $out
    ln -sf ${./cert.pem} "$out/cert.pem"
    ln -sf ${./key.pem} "$out/key.pem"
  '';
}