From: Petr Špaček Date: Thu, 4 Apr 2019 16:21:37 +0000 (+0200) Subject: http: print nice error if cert exists but key does not X-Git-Tag: v4.0.0~10^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0562958d22123c9e0a5a238b0eb79b01e5249b47;p=thirdparty%2Fknot-resolver.git http: print nice error if cert exists but key does not --- diff --git a/modules/http/http.lua.in b/modules/http/http.lua.in index ed4866234..a1e8486c6 100644 --- a/modules/http/http.lua.in +++ b/modules/http/http.lua.in @@ -299,6 +299,10 @@ function M.add_interface(conf) -- Continue reading key file if crt then f = io.open(conf.key, 'r') + if not f then + panic('enable to open HTTP key file %s', + conf.key) + end key = assert(pkey.new(f:read('*all'))) f:close() end