Skip to content
Snippets Groups Projects
Verified Commit b0209541 authored by Petr Špaček's avatar Petr Špaček
Browse files

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
parent 165891f5
Branches
Tags
1 merge request!578prefill: fix ca_file to actually expect file and not a directory
Pipeline #36047 passed with warnings with stages
in 8 minutes and 13 seconds
......@@ -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
......
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