File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ def _extract_cert_and_thumbprints(cert):
7777 [1 :- 1 ] # Strip the "--- header ---" and "--- footer ---"
7878 )
7979 ]
80- # https://cryptography.io/en/latest/x509/reference/#x-509-certificate-object
81- sha256_thumbprint = cert .fingerprint (hashes .SHA256 ()).hex () # Requires cryptography 0.7+
82- sha1_thumbprint = cert .fingerprint (hashes .SHA1 ()).hex () # Requires cryptography 0.7+
80+ # https://cryptography.io/en/latest/x509/reference/#x-509-certificate-object - Requires cryptography 0.7+
81+ sha256_thumbprint = cert .fingerprint (hashes .SHA256 ()).hex ()
82+ sha1_thumbprint = cert .fingerprint (hashes .SHA1 ()).hex () # CodeQL [SM02167] for legacy support such as ADFS
8383 return sha256_thumbprint , sha1_thumbprint , x5c
8484
8585def _parse_pfx (pfx_path , passphrase_bytes ):
You can’t perform that action at this time.
0 commit comments