These notes were written when v3.3 was introduced and superseded v3.2 in 2017. All these notes are equally valid for v4.0 (introduced 2021).
sello
in v3.2 becomes Sello
in v3.3.
Be careful to change the attribute argument in any calls to GetXMLAttribute.
FirmaSAT ATTRIBUTE -d -a sello -e Comprobante -i cfdv33-signed-tfd.xml Attribute=[sello] Element=[Comprobante] Error code -21: Match not found/No se pudo encontrar datos coincidente
FirmaSAT ATTRIBUTE -d -a Sello -e Comprobante -i cfdv33-signed-tfd.xml Nm+AyKSlay8Lg5Z++uSHQNLC6FUGB9KInjk9cm0I+n4Jwxwp2SwdEaRP6hTH+f2veoqm6Z ...aFplBE3LQrPda+DjM2296Mje0mvoX+KtQpHAUOZoCg==
TimbreFiscalDigital
element is required to be version 1.1 for CFD v4.0/3.3. The data for the QRcode image is different, too.
sha256WithRSAEncryption
).
In FirmaSAT,
the hash algorithm used to form digests and signatures is chosen automatically depending on the type and version of the document detected.
NoCertificado
node is now included in the pipe string (cadena original) and must be completed before computing the digest or signing the document.
This must match the actual certificate used for signing.
In v3.2 you could use 00000000000000000000
as a placeholder; this no longer applies with v4.0/3.3.
NoCertificado
and Certificado
)
before doing further work.