diff --git a/app_decoder.py b/app_decoder.py index 10ebd5e..588a0b7 100755 --- a/app_decoder.py +++ b/app_decoder.py @@ -43,7 +43,7 @@ def find_preferences_xml(): def save_key_to_pem(pfx_data, pfx_password): - private_key, certificate, additional_certificates = pkcs12.load_key_and_certificates(pfx_data, bytes.fromhex(pfx_password)) + private_key, certificate, additional_certificates = pkcs12.load_key_and_certificates(pfx_data, bytes.fromhex(pfx_password),None) with open("public.pem", "wb") as f: f.write(certificate.public_bytes(encoding=serialization.Encoding.PEM)) diff --git a/requirements.txt b/requirements.txt index 2bf40fa..2e64fe0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ paho-mqtt>=1.5.0 dash>=1.18.0 plotly>=4 -cryptography>=3.1 +cryptography>=3.0 pandas oauth2_client requests