Bug 46074 - Traceback when checking SSL certificates
Summary: Traceback when checking SSL certificates
Status: RESOLVED DUPLICATE of bug 45585
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
Version: UCS 4.2
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 12:37 CET by Sönke Schwardt-Krummrich
Modified: 2018-02-07 10:36 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2018-01-18 12:37:20 CET
I started the diagnosis module on a UCS 4.2-3e262 master with univention-mail-server and got this traceback:

Problem: Überprüfe Gültigkeit der SSL Zertifikate

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 287, 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 258, in verify_local
  for error in verifier.verify_root():
 File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 202, in verify_root
  for error in self.verify(self.root_cert_path):
 File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 206, 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 171, in _verify_timestamps
  valid_from = self.parse_generalized_time(cert.get_notBefore())
 File "/usr/lib/pymodules/python2.7/univention/management/console/modules/diagnostic/plugins/02_certificate_check.py", line 141, in parse_generalized_time
  date = datetime.datetime.strptime(sans_mircoseconds, date_format)
ImportError: Failed to import _strptime because the import lockis held by another thread.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2018-01-18 12:55:59 CET
Looks like a racing condition. I was not able to reproduce this error.
Comment 2 Jürn Brodersen univentionstaff 2018-02-07 10:36:56 CET

*** This bug has been marked as a duplicate of bug 45585 ***