We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d5b48 commit 829bcb0Copy full SHA for 829bcb0
pynfe/entidades/certificado.py
@@ -57,7 +57,7 @@ def separar_arquivo(self, senha, caminho=False):
57
chave,
58
cert,
59
_,
60
- ) = pkcs12.load_key_and_certificates(cert_conteudo, senha)
+ ) = pkcs12.load_key_and_certificates(cert_conteudo, str.encode(senha))
61
except ValueError as e:
62
if "bad decrypt" in str(e).lower():
63
raise Exception(
0 commit comments