mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-26 10:17:18 +00:00
add compatibility with old cryptography version 3.0
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ def find_preferences_xml():
|
|||||||
|
|
||||||
|
|
||||||
def save_key_to_pem(pfx_data, pfx_password):
|
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:
|
with open("public.pem", "wb") as f:
|
||||||
f.write(certificate.public_bytes(encoding=serialization.Encoding.PEM))
|
f.write(certificate.public_bytes(encoding=serialization.Encoding.PEM))
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
paho-mqtt>=1.5.0
|
paho-mqtt>=1.5.0
|
||||||
dash>=1.18.0
|
dash>=1.18.0
|
||||||
plotly>=4
|
plotly>=4
|
||||||
cryptography>=3.1
|
cryptography>=3.0
|
||||||
pandas
|
pandas
|
||||||
oauth2_client
|
oauth2_client
|
||||||
requests
|
requests
|
||||||
|
|||||||
Reference in New Issue
Block a user