patos/pkgs/cert/default.nix

18 lines
258 B
Nix
Raw Normal View History

2025-03-17 10:18:30 +01:00
{
runCommand,
pkgs,
}:
runCommand "patagia-certs"
{
buildInputs = with pkgs; [
openssl
];
}
''
mkdir -pv $out
openssl req -new -x509 -days 365 -nodes -out $out/cert.pem -keyout $out/key.pem -subj "/CN=patagia-signing"
''