git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/stunnel: Fix CA files
commit4a32dbd1e103ead7f022d623ca6aed37268c17f2 authorJanne Heß <janne@hess.ooo> dateFri 25 Oct 2019, 15:28 (7 years ago) parent77a5bf5
1 file changed+8−1
nixos/modules/services/networking/stunnel.nix+8−1
nixos/modules/services/networking/stunnel.nix+8−1
@@ -57,7 +57,13 @@ let
5757 };
5858
5959 CAPath = mkOption {
60− type = types.path;
60+ type = types.nullOr types.path;
61+ default = null;
62+ description = "Path to a directory containing certificates to validate against.";
63+ };
64+
65+ CAFile = mkOption {
66+ type = types.nullOr types.path;
6167 default = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
6268 description = "Path to a file containing certificates to validate against.";
6369 };
@@ -196,6 +202,7 @@ in
196202 verifyChain = ${yesNo v.verifyChain}
197203 verifyPeer = ${yesNo v.verifyPeer}
198204 ${optionalString (v.CAPath != null) "CApath = ${v.CAPath}"}
205+ ${optionalString (v.CAFile != null) "CAFile = ${v.CAFile}"}
199206 ${optionalString (v.verifyHostname != null) "checkHost = ${v.verifyHostname}"}
200207 OCSPaia = yes
201208