Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chadgates committed Jan 6, 2022
1 parent fff691b commit d76deb1
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 d76deb1

Please sign in to comment.