aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-14 23:41:26 +0200
committerKim Alvefur <zash@zash.se>2014-04-14 23:41:26 +0200
commitff3d811e6a6f2ec5bce62683be48fe5121245ef3 (patch)
tree32cb9e8ea06f7afd86bc94743b859bae8b539bd9 /core
parent6031d2cdfac34ae1dba3907ca36dd4a6293d4218 (diff)
downloadprosody-ff3d811e6a6f2ec5bce62683be48fe5121245ef3.tar.gz
prosody-ff3d811e6a6f2ec5bce62683be48fe5121245ef3.zip
certmanager: Wrap long line and add comment
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 879d6131..5cbec241 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -81,7 +81,11 @@ function create_context(host, mode, user_ssl_config)
user_ssl_config[option] = default_value;
end
end
- user_ssl_config.password = user_ssl_config.password or function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end;
+
+ -- We can't read the password interactively when daemonized
+ user_ssl_config.password = user_ssl_config.password or
+ function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end;
+
for option in pairs(path_options) do
if type(user_ssl_config[option]) == "string" then
user_ssl_config[option] = resolve_path(config_path, user_ssl_config[option]);