aboutsummaryrefslogtreecommitdiffstats
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
commitb54d51c5bf7e1d1f79e356a95529d3ece089a79e (patch)
tree059d34596d1abb3849171182e366a415ab056526
parent04b5ed96db9594666f102cb5cb224f69b4026515 (diff)
downloadprosody-b54d51c5bf7e1d1f79e356a95529d3ece089a79e.tar.gz
prosody-b54d51c5bf7e1d1f79e356a95529d3ece089a79e.zip
certmanager: Check for missing certificate before key in configuration (should be marginally less confusing)
-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