aboutsummaryrefslogtreecommitdiffstats
path: root/core/certmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-07 20:55:02 +0200
committerKim Alvefur <zash@zash.se>2013-06-07 20:55:02 +0200
commit0a3f580122c971b7eaddd5d9b97c6c4137023054 (patch)
treecd66616bea031f7ffac10b36b56ab4e502e840d5 /core/certmanager.lua
parente626df2fc20257eb9e96fb9cfcfc22df10e044c9 (diff)
downloadprosody-0a3f580122c971b7eaddd5d9b97c6c4137023054.tar.gz
prosody-0a3f580122c971b7eaddd5d9b97c6c4137023054.zip
certmanager: Complain if key or certificate is missing from SSL config.
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r--core/certmanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 49f445f6..5be328f6 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -49,6 +49,8 @@ function create_context(host, mode, user_ssl_config)
if not ssl then return nil, "LuaSec (required for encryption) was not found"; end
if not user_ssl_config then return nil, "No SSL/TLS configuration present 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
local ssl_config = {
mode = mode;