core/certmanager.lua
changeset 8497 4f75f4da6d4e
parent 8408 a3cf899fd61b
child 8558 4f0f5b49bb03
child 8830 1a29b56a2d63
--- a/core/certmanager.lua	Thu Dec 21 10:15:47 2017 +0100
+++ b/core/certmanager.lua	Thu Dec 28 17:32:56 2017 +0100
@@ -176,8 +176,8 @@
 	local user_ssl_config = cfg:final();
 
 	if mode == "server" then
+		if not user_ssl_config.certificate then return nil, "No certificate present in SSL/TLS configuration for "..host; end
 		if not user_ssl_config.key then return nil, "No key present in SSL/TLS configuration for "..host; end
-		if not user_ssl_config.certificate then return nil, "No certificate present in SSL/TLS configuration for "..host; end
 	end
 
 	for option in pairs(path_options) do