add compatibility with old cryptography version 3.0

This commit is contained in:
Florian Bezannier
2021-01-29 09:57:28 +01:00
parent 273d13cef7
commit 609eb1bafd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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))
+1 -1
View File
@@ -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