@@ -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