3
0
Fork 0
forked from mirrors/nixpkgs

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