# HG changeset patch # User Kim Alvefur # Date 1335042719 -7200 # Node ID 43469a2d124d8b76c436441f3dedf3f55dabfaaf # Parent e07ce18c503e9b88566c63bb6167250633321d7a core.certmanager: Log a message when a password is required but not supplied. fixes #214 diff -r e07ce18c503e -r 43469a2d124d core/certmanager.lua --- 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);