core/certmanager.lua
changeset 4656 43469a2d124d
parent 4408 21881619a394
child 4855 a31ea431d906
--- 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);