aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/certmanager.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index fa920b91..3dd06585 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -48,11 +48,12 @@ function create_context(host, mode, config)
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()