diff --git a/subscriptions/views.py b/subscriptions/views.py index 6ebf240..84e7784 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -122,7 +122,7 @@ def load_root_certificate(): in_file = open("AppleRootCA-G3.cer", "rb") # opening for [r]eading as [b]inary data = in_file.read() # if you only wanted to read 512 bytes, do .read(512) in_file.close() - return data + return load_certificate(FILETYPE_ASN1, data) def _get_root_cert(root_cert_path):