Fri, 23 Jul 2010 09:17:11 +0100
certmanager: Don't disable LuaSec and future cert loading on failure, and add error messages to the no LuaSec/config cases (thanks Jakob)
core/certmanager.lua | file | annotate | diff | comparison | revisions |
--- 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()