bassemAgmi / EInvoicingSigner

A command prompt application used to serialize and sign tax payers documents before sending the documents to Egyptian Tax Authority.
70 stars 56 forks source link

EInvoicingSigner

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