Univention Bugzilla – Bug 45974
Certificate check does not check file existence
Last modified: 2020-07-03 20:51:58 CEST
02_certificate_check.py checks several certificates from UCR variables and the ucsCA, but only shows a traceback if one of the files simply does not exist. The error message should show which certificate it tried to check, so the user is able to see which UCRv has a wrong/empty value or which ucsCA cert is missing. Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/__init__.py", line 263, in execute result = execute(umc_module, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 286, in run cert_verify = list(verify_local(all_certificates)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 260, in verify_local for error in verifier.verify(cert): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 205, in verify for error in self._verify_timestamps(cert_path): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 164, in _verify_timestamps with open(cert_path) as fob: IOError: [Errno 2] No such file or directory: ''
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.