br__sign_nfe
Sign NF-e/NFC-e XML documents with ICP-Brasil certificates using enveloped XML-DSig signature, complying with MOC 7.0 requirements.
Instructions
Apply an ICP-Brasil enveloped XML-DSig signature to an NF-e/NFC-e XML.
Signs <infNFe> per MOC 7.0 Table 4-2 (RSA-SHA1 / SHA-1, enveloped
transform, ds:Signature appended as the last child of <NFe>) using
mcp_nfe_br.standards.nfe_signer.build_nfe_signer.
Only ICP-Brasil A1 (PKCS#12 file-based) certificates are supported.
A3 (hardware token/HSM) certificates [NEED: not modeled].
Returns a dict with xml (the signed document) or error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cert_path | Yes | Caminho local para o certificado ICP-Brasil A1 (.p12/.pfx) | |
| xml_content | No | XML NF-e/NFC-e não assinado. Informe xml_content ou xml_base64. | |
| xml_base64 | No | XML NF-e/NFC-e não assinado, codificado em base64. | |
| cert_password | No | Senha do certificado A1, se houver |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||