Open xtanion opened 1 year ago
!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()
certificate = serialization.load_pem_certificate(pem_data, default_backend())
return certificate
pem_file_path = r'D:\Python SDK\integration-sdks\python\rsa_public.pem' certificate = load_pem_file(pem_file_path)
try this code
While running
testHcxUtils.py
I'm getting the following error: