You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running testHcxUtils.py I'm getting the following error:
return rust_x509.load_pem_x509_certificate(data)
ValueError: Unable to load PEM file. See https://cryptography.io/en/latest/faq/#why-can-t-i-import-my-pem-file for more details. MalformedFraming
The text was updated successfully, but these errors were encountered:
!pip install cryptography
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
def load_pem_file(file_path):
with open(file_path, 'rb') as pem_file:
pem_data = pem_file.read()
# Load PEM data into an X509 certificate object
certificate = serialization.load_pem_certificate(pem_data, default_backend())
return certificate
While running
testHcxUtils.py
I'm getting the following error:The text was updated successfully, but these errors were encountered: