aboutsummaryrefslogtreecommitdiffstats
path: root/core/certmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-28 17:32:56 +0100
committerKim Alvefur <zash@zash.se>2017-12-28 17:32:56 +0100
commitb8915c9db4fb03d17da7023b0e70b9872811785a (patch)
tree059d34596d1abb3849171182e366a415ab056526 /core/certmanager.lua
parent2d4c94e612c88e608c8b94980b6af34884ca6eb8 (diff)
downloadprosody-b8915c9db4fb03d17da7023b0e70b9872811785a.tar.gz
prosody-b8915c9db4fb03d17da7023b0e70b9872811785a.zip
certmanager: Check for missing certificate before key in configuration (should be marginally less confusing)
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index f343b6d7..1cbdac5d 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -176,8 +176,8 @@ local function create_context(host, mode, ...)
local user_ssl_config = cfg:final();
if mode == "server" then
- 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
+ if not user_ssl_config.key then return nil, "No key present in SSL/TLS configuration for "..host; end
end
for option in pairs(path_options) do