Skip to content

Commit 1276a3b

Browse files
authoredJan 11, 2018
nixos/acme: configurable TOS hash (#33522)
This hash tends to change and upstream simp_le doesn't seem to keep up with the changes.
1 parent 8d12c26 commit 1276a3b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎nixos/modules/security/acme.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ in
139139
'';
140140
};
141141

142+
tosHash = mkOption {
143+
type = types.string;
144+
default = "cc88d8d9517f490191401e7b54e9ffd12a2b9082ec7a1d4cec6101f9f1647e7b";
145+
description = ''
146+
SHA256 of the Terms of Services document. This changes once in a while.
147+
'';
148+
};
149+
142150
production = mkOption {
143151
type = types.bool;
144152
default = true;
@@ -188,7 +196,7 @@ in
188196
domain = if data.domain != null then data.domain else cert;
189197
cpath = "${cfg.directory}/${cert}";
190198
rights = if data.allowKeysForGroup then "750" else "700";
191-
cmdline = [ "-v" "-d" domain "--default_root" data.webroot "--valid_min" cfg.validMin ]
199+
cmdline = [ "-v" "-d" domain "--default_root" data.webroot "--valid_min" cfg.validMin "--tos_sha256" cfg.tosHash ]
192200
++ optionals (data.email != null) [ "--email" data.email ]
193201
++ concatMap (p: [ "-f" p ]) data.plugins
194202
++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains)

0 commit comments

Comments
 (0)
Please sign in to comment.