Skip to content

Commit

Permalink
Actual 5.7.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Oct 29, 2024
1 parent a8d15eb commit d765696
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkdmarc/bimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,11 @@ def _get_certificate_san(cert: Union[X509, bytes]) -> [str]:
cert_ext = cert.get_extension(cert_ext_id)
if cert_ext.get_short_name() == b"subjectAltName":
san = cert_ext.__str__()
san.replace("DNS:", "")
san = san.replace("DNS:", "")
san = san.split(", ")
return san


def extract_logo_from_certificate(cert: Union[bytes, X509]):
"""Extracts the logo from a certificate"""
if type(cert) is bytes:
Expand Down

0 comments on commit d765696

Please sign in to comment.