Software /
code /
prosody
Diff
core/certmanager.lua @ 4656:43469a2d124d
core.certmanager: Log a message when a password is required but not supplied. fixes #214
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Apr 2012 23:11:59 +0200 |
parent | 4408:21881619a394 |
child | 4855:a31ea431d906 |
line wrap: on
line diff
--- a/core/certmanager.lua Sat Apr 21 21:16:53 2012 +0100 +++ b/core/certmanager.lua Sat Apr 21 23:11:59 2012 +0200 @@ -35,7 +35,7 @@ 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);