diff options
author | Anonymous <anon@anon.com> | 2021-12-09 14:59:59 +0100 |
---|---|---|
committer | Anonymous <anon@anon.com> | 2021-12-09 14:59:59 +0100 |
commit | b178c337673eb9c3b500d7920320a71ce65c82b5 (patch) | |
tree | 73c1f718fd43d3926b3e431b3f3bae5bf3a5b9ec | |
parent | ac6a2ba33855a9369217277cfa8371f656376a5a (diff) |
Created ACME (markdown)
-rw-r--r-- | ACME.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +# ACME/SSL + +we now have our own letsencrypt-like service for internal certificates: + +## howto trust the CA +``` +security.pki.certificateFiles = [(pkgs.fetchurl { + url = "http://ca.r/ca.crt"; # can be also downloaded from some other location like github/cgit + sha256 = "sha256-qd3HYc/HaMGbrHDjTKgs4QbHTRcA//xxr+fu1FnKBBs="; +})] +``` +for firefox/chromium the certificate needs to be added manually # TODO document this step + +## get a certificate from CA (need to trust CA first) + +``` +services.nginx.virtualHosts."myservice.r" = { + enableACME = true; +} +security.acme.certs."myservice.r".server = "https://ca.r/acme/acme/directory"; +```
\ No newline at end of file |