From 0562958d22123c9e0a5a238b0eb79b01e5249b47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Thu, 4 Apr 2019 18:21:37 +0200 Subject: [PATCH] http: print nice error if cert exists but key does not --- modules/http/http.lua.in | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2