A command prompt application used to serialize and sign tax payers documents before sending the documents to Egyptian Tax Authority. The application reads the invoice JSON file SourceDocumentJson.json and generates the canonical format of the JSON "CanonicalString.txt". The application signs the canonical genrated text and writes the output to the file Cades.txt. After that, the application will write the invoice json with signature into the file FullSignedDocument.json. This application has been developed to help in tracing signing documents issues. You can compare the generated canonical format, cades, and the full signed document with your generated version. Plus, you can use this tool from any progaming language C#, JAVA, or directly from database. All you need is writting the invoice JSON file, invoking the command prompt application, reading the signed invoice json, and sending it to "Egyptian Tax Authority".
The application takes three arguments
- First argument is the application folder path
- Second argument is the token pin.
- Third argument is the certificate issuer. The default value for this argument is "Egypt Trust Sealing CA"
- Download the runtime version from https://drive.google.com/file/d/1jfkC_qfU56BSawRL4TcBrOssNudhcgTX/view?usp=sharing
- Extract to a folder like D:\EInvoicing
- Update the file SubmitInvoices.bat by your token PIN and application folder path
- Update the file SourceDocumentJson.json with your invoice JSON.
- Run the file SubmitInvoices.bat
- Take the content of FullSignedDocument.json and send it to "Egyptian Tax Authority" using any tool like Postman.