core/certmanager.lua

changeset 3399
3976bad56640
parent 2738
7339c2720b39
child 3400
502a634f0578
--- a/core/certmanager.lua	Sat Jul 03 11:03:06 2010 +0500
+++ b/core/certmanager.lua	Fri Jul 23 09:17:11 2010 +0100
@@ -48,11 +48,12 @@
 			else
 				log("error", "SSL/TLS: Error initialising for host %s: %s", host, err );
 			end
-			ssl = false
         	end
         	return ctx, err;
+	elseif not ssl then
+		return nil, "LuaSec (required for encryption) was not found";
 	end
-	return nil;
+	return nil, "No SSL/TLS configuration present for "..host;
 end
 
 function reload_ssl_config()

mercurial