# HG changeset patch # User Kim Alvefur # Date 1370631302 -7200 # Node ID 576488cffc3a14ae17939f611d795373442b0487 # Parent 6d7f7548b2c9f3566c91ef0e93af3f8c80641e26 certmanager: Complain if key or certificate is missing from SSL config. diff -r 6d7f7548b2c9 -r 576488cffc3a core/certmanager.lua --- a/core/certmanager.lua Fri Jun 07 20:05:23 2013 +0200 +++ b/core/certmanager.lua Fri Jun 07 20:55:02 2013 +0200 @@ -49,6 +49,8 @@ if not ssl then return nil, "LuaSec (required for encryption) was not found"; end if not user_ssl_config then return nil, "No SSL/TLS configuration present for "..host; end + if not user_ssl_config.key then return nil, "No key present in SSL/TLS configuration for "..host; end + if not user_ssl_config.certificate then return nil, "No certificate present in SSL/TLS configuration for "..host; end local ssl_config = { mode = mode;