Skip to content

Commit 829bcb0

Browse files
committed
Password as bytes like
1 parent 03d5b48 commit 829bcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynfe/entidades/certificado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def separar_arquivo(self, senha, caminho=False):
5757
chave,
5858
cert,
5959
_,
60-
) = pkcs12.load_key_and_certificates(cert_conteudo, senha)
60+
) = pkcs12.load_key_and_certificates(cert_conteudo, str.encode(senha))
6161
except ValueError as e:
6262
if "bad decrypt" in str(e).lower():
6363
raise Exception(

0 commit comments

Comments
 (0)