Laurent 2 years ago
parent 9413a35529
commit edd9591db7
  1. 2
      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 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) data = in_file.read() # if you only wanted to read 512 bytes, do .read(512)
in_file.close() in_file.close()
return data return load_certificate(FILETYPE_ASN1, data)
def _get_root_cert(root_cert_path): def _get_root_cert(root_cert_path):

Loading…
Cancel
Save