Add HTTPD SSH assertion to check null cert/key.
This commit is contained in:
parent
0427e7fbf2
commit
df5f491893
@ -584,8 +584,8 @@ in
|
|||||||
config = mkIf config.services.httpd.enable {
|
config = mkIf config.services.httpd.enable {
|
||||||
|
|
||||||
assertions = [ { assertion = mainCfg.enableSSL == true
|
assertions = [ { assertion = mainCfg.enableSSL == true
|
||||||
-> mainCfg.sslServerCert != null && mainCfg.sslServerCert != ""
|
-> mainCfg.sslServerCert != null
|
||||||
&& mainCfg.sslServerKey != null && mainCfg.sslServerKey != "";
|
&& mainCfg.sslServerKey != null;
|
||||||
message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; }
|
message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user