Diff

core/certmanager.lua @ 3399:3976bad56640

certmanager: Don't disable LuaSec and future cert loading on failure, and add error messages to the no LuaSec/config cases (thanks Jakob)
author Matthew Wild <mwild1@gmail.com>
date Fri, 23 Jul 2010 09:17:11 +0100
parent 2739:7339c2720b39
child 3400:502a634f0578
line wrap: on
line diff
--- 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()