depot/third_party/nixpkgs/nixos/tests/common/acme/server
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00
..
acme.test.cert.pem Project import generated by Copybara. 2022-11-27 10:42:12 +01:00
acme.test.key.pem Project import generated by Copybara. 2022-11-27 10:42:12 +01:00
ca.cert.pem Project import generated by Copybara. 2022-11-27 10:42:12 +01:00
ca.key.pem Project import generated by Copybara. 2022-11-27 10:42:12 +01:00
default.nix Project import generated by Copybara. 2023-05-24 16:37:59 +03:00
generate-certs.nix Project import generated by Copybara. 2023-01-20 11:41:00 +01:00
README.md Project import generated by Copybara. 2020-11-02 21:18:15 -05:00
snakeoil-certs.nix Project import generated by Copybara. 2020-11-02 21:18:15 -05: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