Turn the exception into a warning
This commit is contained in:
parent
497c230394
commit
d614c1ff06
@ -227,13 +227,13 @@ def order_x509(x509_objects, root_issuers):
|
|||||||
str(root_crt.get_subject()))
|
str(root_crt.get_subject()))
|
||||||
# Double check if our self signed root certificate is not also present
|
# Double check if our self signed root certificate is not also present
|
||||||
# as an cross signed intermediate:
|
# as an cross signed intermediate:
|
||||||
# - It confuses the ordering process
|
# - It might confuse the ordering process
|
||||||
if next((x for x in x509_objects
|
if next((x for x in x509_objects
|
||||||
if x.get_subject() != x.get_issuer()
|
if x.get_subject() != x.get_issuer()
|
||||||
and x.get_subject() == root_crt.get_subject()), None):
|
and x.get_subject() == root_crt.get_subject()), None):
|
||||||
raise CertificateComponentException('Both present as intermediate '
|
logging.warning('Both present as intermediate '
|
||||||
'and root certificate: %s' %
|
'and root certificate: %s' %
|
||||||
str(root_crt.get_subject()))
|
str(root_crt.get_subject()))
|
||||||
else:
|
else:
|
||||||
# Get intermediate cert signed by any root from bundle as anchor, and
|
# Get intermediate cert signed by any root from bundle as anchor, and
|
||||||
# make that our root
|
# make that our root
|
||||||
|
Loading…
x
Reference in New Issue
Block a user