From 497c230394996f67542509367ed1efbdf71563a4 Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Wed, 27 Jul 2022 14:48:31 +0200 Subject: [PATCH] There can be a root certificate and a cross signed intermediate certificate with the same subject --- sort_certificate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sort_certificate.py b/sort_certificate.py index 819075e..1658a2e 100755 --- a/sort_certificate.py +++ b/sort_certificate.py @@ -226,8 +226,7 @@ def order_x509(x509_objects, root_issuers): logging.warning('Found self signed (root) certificate %s in input', str(root_crt.get_subject())) # Double check if our self signed root certificate is not also present - # as an intermediate: - # - It is probably invalid input, and doesn't make sense + # as an cross signed intermediate: # - It confuses the ordering process if next((x for x in x509_objects if x.get_subject() != x.get_issuer()