diff --git a/pytrustnfe/nfe/assinatura.py b/pytrustnfe/nfe/assinatura.py index 9e9af08..b7558fc 100644 --- a/pytrustnfe/nfe/assinatura.py +++ b/pytrustnfe/nfe/assinatura.py @@ -27,7 +27,7 @@ class Assinatura(object): c14n_algorithm='http://www.w3.org/TR/2001/REC-xml-c14n-20010315') signed_root = signer.sign( - xml_element, key=key, cert=cert, reference_only=True, + xml_element, key=key, cert=cert, reference_uri=('#%s' % reference)) if len(signed_root) > 3: signed_root[2].append(signed_root[3]) diff --git a/requirements.txt b/requirements.txt index d1fd3f4..059038b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ coveralls http://xmlsoft.org/sources/python/libxml2-python-2.6.21.tar.gz https://github.com/odoo-brazil/pyxmlsec/archive/master.zip Jinja2 -https://github.com/Trust-Code/signxml/archive/sign-by-reference.zip +signxml pypandoc suds suds_requests