I’m seeking clarification regarding the correct usage of certain parameters and data files in the ZATCA e-Invoicing SDK (zatca-einvoicing-sdk-DotNet-238-R3.3.9
). Specifically, I need help with the following methods:
ValidateEInvoice(XmlDocument eInvoice, string certificateFileContent, string pihFileContent)
SignDocument(XmlDocument document, string certificateThumbprint, string privateKeyContent)
My Questions:
- What exactly do the following parameters represent, and how should they be used?
certificateFileContent
certificateThumbprint
pihFileContent
privateKeyContent
- In my current implementation, I’ve used the following files from the SDK:
certificateFileContent
andcertificateThumbprint
:Data/Certificates/cert.pem
privateKeyContent
:Data/Certificates/ec-secp256k1-priv-key.pem
pihFileContent
:Data/PIH/pih.txt
Using these files, I was able to successfully sign and validate invoices.
- Can these files from the SDK (located under
Data/Certificates
andData/PIH
) be used in a production environment, or are they just for testing purposes? If they are for testing, what steps are needed to replace them with valid production data?
I’d greatly appreciate any clarification or guidance on whether this approach is correct for production use and how to ensure compliance with ZATCA requirements.