Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
22 lines
832 B
Markdown
22 lines
832 B
Markdown
# Fake Certificate Authority for ACME testing
|
|
|
|
This will set up a test node running [pebble](https://github.com/letsencrypt/pebble)
|
|
to serve ACME certificate requests.
|
|
|
|
## "Snake oil" certs
|
|
|
|
The snake oil certs are hard-coded into the repo for reasons explained [here](https://github.com/NixOS/nixpkgs/pull/91121#discussion_r505410235).
|
|
The root of the issue is that Nix will hash the derivation based on the arguments
|
|
to mkDerivation, not the output. [Minica](https://github.com/jsha/minica) will
|
|
always generate a random certificate even if the arguments are unchanged. As a
|
|
result, it's possible to end up in a situation where the cached and local
|
|
generated certs mismatch and cause issues with testing.
|
|
|
|
To generate new certificates, run the following commands:
|
|
|
|
```bash
|
|
nix-build generate-certs.nix
|
|
cp result/* .
|
|
rm result
|
|
```
|