Commit 0562958d authored by Petr Špaček's avatar Petr Špaček

http: print nice error if cert exists but key does not

parent 5a308fd2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment