Software /
code /
prosody
Changeset
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 |
parents | 4649:e07ce18c503e |
children | 4657:281596cc53d3 |
files | core/certmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);