Commit ff69ae30 authored by tobias.dussa's avatar tobias.dussa

Fixed encoding.

parent 661e375b
......@@ -37,7 +37,7 @@ while True:
# otherwise
try:
with open(infile, 'rb') as pkcs12file:
p12 = crypto.load_pkcs12(pkcs12file.read(), password.encode('ascii'))
p12 = crypto.load_pkcs12(pkcs12file.read(), password.encode('utf-8'))
break
except crypto.Error:
messagebox.showinfo('Fehler!', 'Zertifikat konnte nicht geöffnet werden!')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment