From df5f4918937d9285eabb862bd0276a87316d8917 Mon Sep 17 00:00:00 2001 From: Alex Berg Date: Mon, 11 Nov 2013 12:08:36 +0800 Subject: [PATCH] Add HTTPD SSH assertion to check null cert/key. --- nixos/modules/services/web-servers/apache-httpd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix index e94af76661d1..6836746f8297 100644 --- a/nixos/modules/services/web-servers/apache-httpd/default.nix +++ b/nixos/modules/services/web-servers/apache-httpd/default.nix @@ -584,8 +584,8 @@ in config = mkIf config.services.httpd.enable { assertions = [ { assertion = mainCfg.enableSSL == true - -> mainCfg.sslServerCert != null && mainCfg.sslServerCert != "" - && mainCfg.sslServerKey != null && mainCfg.sslServerKey != ""; + -> mainCfg.sslServerCert != null + && mainCfg.sslServerKey != null; message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; } ];