Skip to content

Commit 492f803

Browse files
authored
Merge pull request #227 from leogregianin/fix/assinatura
Correção da assinatura digital com signxml
2 parents 8fcd9e0 + 9802b5e commit 492f803

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pynfe/processamento/assinatura.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def assinar(self, xml, retorna_string=False):
4141
method=signxml.methods.enveloped, signature_algorithm="rsa-sha1",
4242
digest_algorithm='sha1',
4343
c14n_algorithm='http://www.w3.org/TR/2001/REC-xml-c14n-20010315')
44+
signer.excise_empty_xmlns_declarations = True
4445

4546
ns = {None: signer.namespaces['ds']}
4647
signer.namespaces = ns

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Dependencias basicas
2-
pyopenssl
2+
pyopenssl>=22.1.0
33
requests
44
lxml
5-
signxml
5+
signxml>=2.10.1
66

77
# Opcional para NFS-e
88
#-r requirements-nfse.txt

0 commit comments

Comments
 (0)