1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Add HTTPD SSH assertion to check null cert/key.

This commit is contained in:
Alex Berg 2013-11-11 12:08:36 +08:00
parent 0427e7fbf2
commit df5f491893

View file

@ -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."; }
];