FirmaSAT
10.50.0
|
Methods for Timbre Fiscal Digital (TFD). More...
Static Public Member Functions | |
static int | AddSignedTfd (const std::string &outFile, const std::string &inputFile, const std::string &keyFile, const std::string &password, const std::string &certFile) |
Add a signed Timbre Fiscal Digital (TFD) element to a CFDI document. More... | |
static std::string | ExtractDigestFromSignature (const std::string &xmlFile, const std::string &certFile) |
Extract message digest from the selloSAT node in Timbre Fiscal Digital of CFDI document. More... | |
static std::string | MakeDigestFromXml (const std::string &xmlFile) |
Form message digest of cadena original del Timbre Fiscal Digital del SAT (TFD piped string) from CFDI XML file. More... | |
static std::string | MakePipeStringFromXml (const std::string &xmlFile) |
Create the cadena original del Timbre Fiscal Digital del SAT (TFD piped string) from CFDI XML file. More... | |
static std::string | MakeSignatureFromXml (const std::string &xmlFile, const std::string &keyFile, const std::string &password) |
Extract message digest from the selloSAT node in Timbre Fiscal Digital of CFDI document. More... | |
static int | VerifySignature (const std::string &xmlFile, const std::string &certFile) |
Verify the selloSAT signature in CFDI XML document. More... | |
Methods for Timbre Fiscal Digital (TFD).
|
static |
Add a signed Timbre Fiscal Digital (TFD) element to a CFDI document.
outFile | Name of new file to be created. |
inputFile | Name of existing CFDI file |
keyFile | Name of private key file. |
password | Password for private key file. |
certFile | Name of PAC's X.509 certificate that matches the keyFile (required) |
sello/Sello
field and no existing TFD element. The TFD will be timestamped using the system clock and a fresh UUID will be generated. No other XML processing is carried out except inserting the TFD element. SelloSAT
value will be different each time.
|
static |
Extract message digest from the selloSAT
node in Timbre Fiscal Digital of CFDI document.
xmlFile | Name of XML file to be processed (or a string containing XML data). |
certFile | X.509 certificate file of PAC who signed the TFD (required). |
|
static |
Form message digest of cadena original del Timbre Fiscal Digital del SAT (TFD piped string) from CFDI XML file.
xmlFile | Name of XML file to be processed (or a string containing XML data). |
|
static |
Create the cadena original del Timbre Fiscal Digital del SAT (TFD piped string) from CFDI XML file.
xmlFile | Name of XML file to be processed (or a string containing XML data). |
|
static |
Extract message digest from the selloSAT
node in Timbre Fiscal Digital of CFDI document.
xmlFile | Name of XML file to be processed (or a string containing XML data). |
keyFile | Name of private key file or string with PEM representation. |
password | Password for private key file. |
|
static |
Verify the selloSAT signature in CFDI XML document.
xmlFile | Name of XML file to be processed (or a string containing XML data). |
certFile | X.509 certificate file of PAC who signed the TFD (required). |