depot/nixos/tests/common/acme/server
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00
..
acme.test.cert.pem Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
acme.test.key.pem Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
ca.cert.pem Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
ca.key.pem Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
default.nix Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
generate-certs.nix Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
README.md Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00
snakeoil-certs.nix Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce 2024-11-10 23:59:47 +00:00

Fake Certificate Authority for ACME testing

This will set up a test node running pebble to serve ACME certificate requests.

"Snake oil" certs

The snake oil certs are hard coded into the repo for reasons explained here. The root of the issue is that Nix will hash the derivation based on the arguments to mkDerivation, not the output. 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:

nix-build generate-certs.nix
cp result/* .
rm result