From 0946df453a05d3c921610d32e61079578b6cf0a9 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Thu, 11 Feb 2021 21:35:47 -0500 Subject: [PATCH] Fix type error --- jetforce/tls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetforce/tls.py b/jetforce/tls.py index b8315a8..641fa66 100644 --- a/jetforce/tls.py +++ b/jetforce/tls.py @@ -19,7 +19,7 @@ def inspect_certificate(cert: x509.Certificate) -> typing.Dict[str, object]: """ Extract useful fields from a x509 client certificate object. """ - name_attrs = cert.subject.get_attributes_for_oid(COMMON_NAME) + name_attrs = list(cert.subject.get_attributes_for_oid(COMMON_NAME)) common_name = name_attrs[0].value if name_attrs else "" fingerprint_bytes = cert.fingerprint(hashes.SHA256())