Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed May 6, 2024
1 parent a8fe987 commit 4b4a344
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion checks/tasks/tls/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,3 @@ def _unique_unhashable(ciphers: List[Any]) -> List[Any]:
if cipher not in result:
result.append(cipher)
return result

6 changes: 4 additions & 2 deletions checks/tasks/tls/scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,10 @@ def cert_checks(hostname, mode, task, af_ip_pair=None, dane_cb_data=None, *args,

# Extract all names from a certificate, taken from sslyze' _cert_chain_analyzer.py
subj_alt_name_ext = parse_subject_alternative_name_extension(leaf_cert)
certificate_names = set(get_common_names(leaf_cert.subject) + subj_alt_name_ext.dns_names + subj_alt_name_ext.ip_addresses)
hostmatch_bad = ", ".join(certificate_names)
certificate_names = set(
get_common_names(leaf_cert.subject) + subj_alt_name_ext.dns_names + subj_alt_name_ext.ip_addresses
)
hostmatch_bad = certificate_names

trusted_score = (
trusted_score_good
Expand Down

0 comments on commit 4b4a344

Please sign in to comment.