aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-04-21 23:11:59 +0200
committerKim Alvefur <zash@zash.se>2012-04-21 23:11:59 +0200
commite0762790fdb004d359450908dc8b94b3725daf74 (patch)
tree2ed26b336dbbc131bc3dbc434072f1baacce7b9f /core
parent615325cf153e6ebb5f07bb92545bfcedf1c2266b (diff)
downloadprosody-e0762790fdb004d359450908dc8b94b3725daf74.tar.gz
prosody-e0762790fdb004d359450908dc8b94b3725daf74.zip
core.certmanager: Log a message when a password is required but not supplied. fixes #214
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 8b82ac47..cccf3098 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -35,7 +35,7 @@ function create_context(host, mode, user_ssl_config)
mode = mode;
protocol = user_ssl_config.protocol or "sslv23";
key = resolve_path(config_path, user_ssl_config.key);
- password = user_ssl_config.password;
+ password = user_ssl_config.password or function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end;
certificate = resolve_path(config_path, user_ssl_config.certificate);
capath = resolve_path(config_path, user_ssl_config.capath or default_capath);
cafile = resolve_path(config_path, user_ssl_config.cafile);