From fbc24ea40067411d3b4c7483311c7dd2500a4136 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Thu, 27 Apr 2017 17:45:33 -0700 Subject: [PATCH] There is an issue when iterating over extensions where certificates might not have been issued in adherence with basic constraints. Here we log these errors instead of failing out right. (#770) --- lemur/certificates/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemur/certificates/models.py b/lemur/certificates/models.py index ac01d04b..20ed1262 100644 --- a/lemur/certificates/models.py +++ b/lemur/certificates/models.py @@ -292,6 +292,9 @@ class Certificate(db.Model): current_app.logger.warning('Custom OIDs not yet supported for clone operation.') except InvalidCodepoint as e: current_app.logger.warning('Unable to parse extensions due to underscore in dns name') + except ValueError as e: + current_app.logger.warning('Unable to parse') + current_app.logger.exception(e) return return_extensions