code clean up

This commit is contained in:
Florian Bezannier
2021-03-12 19:03:39 +01:00
parent 72ad867958
commit e889b80841
7 changed files with 33 additions and 23 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ 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), default_backend())
private_key, certificate = pkcs12.load_key_and_certificates(pfx_data,
bytes.fromhex(pfx_password), default_backend())[:2]
try:
os.mkdir("certs")
except FileExistsError: