File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -690,7 +690,9 @@ def _load_pem_certificate(
690690 certificate_data , password , backend = default_backend ()
691691 )
692692 cert = x509 .load_pem_x509_certificate (certificate_data , default_backend ())
693- fingerprint = cert .fingerprint (hashes .SHA1 ())
693+ fingerprint = cert .fingerprint (
694+ hashes .SHA1 ()
695+ ) # CodeQL [SM02167] SHA‑1 thumbprint is only a certificate identifier required by MSAL/Microsoft Entra, not a cryptographic operation
694696 return self ._Cert (certificate_data , private_key , fingerprint )
695697
696698 def _load_pkcs12_certificate (
@@ -730,7 +732,9 @@ def _load_pkcs12_certificate(
730732 ]
731733 pem_bytes = b"" .join (pem_sections )
732734
733- fingerprint = cert .fingerprint (hashes .SHA1 ())
735+ fingerprint = cert .fingerprint (
736+ hashes .SHA1 ()
737+ ) # CodeQL [SM02167] SHA‑1 thumbprint is only a certificate identifier required by MSAL/Microsoft Entra, not a cryptographic operation
734738
735739 return self ._Cert (pem_bytes , private_key , fingerprint )
736740
You can’t perform that action at this time.
0 commit comments