There can be a root certificate and a cross signed intermediate certificate with the same subject
This commit is contained in:
		| @ -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() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user