mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-client: Check if IPA CA cert is empty
IPA CA file should not be used when file is empty. Fixes: https://pagure.io/freeipa/issue/9499 Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
a177121af6
commit
821259f069
@ -167,7 +167,8 @@ def get_cert_path(cert_path):
|
||||
if cert_path is not None:
|
||||
return cert_path
|
||||
|
||||
if os.path.exists(paths.IPA_CA_CRT):
|
||||
if os.path.exists(paths.IPA_CA_CRT) and \
|
||||
os.stat(paths.IPA_CA_CRT).st_size != 0:
|
||||
return paths.IPA_CA_CRT
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user