Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chadgates committed Jan 5, 2022
1 parent 8b7fc14 commit 1528b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyas2lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ def extract_certificate_info(cert: bytes):
certificate.get_notAfter().decode("utf8"), "%Y%m%d%H%M%SZ"
).replace(tzinfo=timezone.utc)
cert_info["subject"] = [
tuple(item.decode("utf8") for item in sets)
tuple(item.decode("utf8", "backslashreplace") for item in sets)
for sets in certificate.get_subject().get_components()
]
cert_info["issuer"] = [
tuple(item.decode("utf8") for item in sets)
tuple(item.decode("utf8", "backslashreplace") for item in sets)
for sets in certificate.get_issuer().get_components()
]
cert_info["serial"] = certificate.get_serial_number()
Expand Down

0 comments on commit 1528b30

Please sign in to comment.