From b0209541d4975bc0556737478078d48f24d41ac5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Wed, 9 May 2018 18:42:28 +0200 Subject: [PATCH] prefill: fix ca_file to actually expect file and not a directory This was leftover from an old version which used directory with certificates instead of bundle in single file. Related: !511 --- modules/prefill/prefill.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/prefill/prefill.lua b/modules/prefill/prefill.lua index d1c372e80..c573ed9e8 100644 --- a/modules/prefill/prefill.lua +++ b/modules/prefill/prefill.lua @@ -168,10 +168,7 @@ local function config_zone(zone_cfg) if not zone_cfg.ca_file then error('[prefill] option ca_file must point ' - .. 'to a directory with CA certificates in PEM format') - else - local _, dir_obj = lfs.dir(zone_cfg.ca_file) - dir_obj:close() + .. 'to a file with CA certificate(s) in PEM format') end rz_ca_file = zone_cfg.ca_file -- 2.47.2