Software /
code /
prosody
Changeset
8494:4f75f4da6d4e
certmanager: Check for missing certificate before key in configuration (should be marginally less confusing)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Dec 2017 17:32:56 +0100 |
parents | 8479:867679b0fb03 |
children | 8495:c494e12ce81f 8496:9b81c22d5b54 |
files | core/certmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Thu Dec 21 10:15:47 2017 +0100 +++ b/core/certmanager.lua Thu Dec 28 17:32:56 2017 +0100 @@ -176,8 +176,8 @@ local user_ssl_config = cfg:final(); if mode == "server" then + 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 - if not user_ssl_config.certificate then return nil, "No certificate present in SSL/TLS configuration for "..host; end end for option in pairs(path_options) do