From ec899b4613102f03c55bcc11850424db9c46bcab Mon Sep 17 00:00:00 2001 From: AlexLinov <74632540+AlexLinov@users.noreply.github.com> Date: Fri, 24 Oct 2025 11:52:14 -0400 Subject: [PATCH] fix-step-8-creating-network-topology-graph Parsed SAN attributes retrieved from certificate objects expect only strings and fails to properly build the graph at Step 8. Changed to add dictionary or None values as well. Addressing open issue currently. This was tested with success --- core/opengraph_builder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/opengraph_builder.py b/core/opengraph_builder.py index 2910bbc..b7ed446 100644 --- a/core/opengraph_builder.py +++ b/core/opengraph_builder.py @@ -156,10 +156,10 @@ def create_website_node(self, ip, port, http_result, protocol): "ssl_validity_period_days": ssl_cert.get('validity_period_days'), # Subject Alternative Names (enhanced) - "ssl_subject_alt_names": ssl_cert.get('subject_alt_names', []), - "ssl_san_dns_names": ssl_cert.get('san_dns_names', []), - "ssl_san_ip_addresses": ssl_cert.get('san_ip_addresses', []), - "ssl_san_email_addresses": ssl_cert.get('san_email_addresses', []), + "ssl_subject_alt_names": [str(i) for i in (ssl_cert.get('subject_alt_names') or []) if i is not None], + "ssl_san_dns_names": [str(i) for i in (ssl_cert.get('san_dns_names') or []) if i is not None], + "ssl_san_ip_addresses": [str(i) for i in (ssl_cert.get('san_ip_addresses') or []) if i is not None], + "ssl_san_email_addresses": [str(i) for i in (ssl_cert.get('san_email_addresses') or []) if i is not None], # Certificate chain "ssl_certificate_chain_length": ssl_cert.get('certificate_chain_length', 1),