About

The Egyptian Tax Authority requires every e-invoice (v1.0) to be signed with the e-seal certificate on a USB token, and the key never leaves the token — so signing has to happen on the PC the token is plugged into.
This program connects to the Qaswara ERP, fetches the invoices, notes and receipts waiting for a signature, signs them CAdES-BES on the token and hands them back to the ERP, which submits them to the ETA. Run it by hand or automatically every few minutes.
Features
- CAdES-BES (SHA-256) as the ETA specifies: detached, with signing time and certificate hash (signing-certificate-v2); the key never leaves the token
- Finds the common token drivers in Egypt automatically: ePass2003 (Egypt Trust and MCDR), SafeNet, Watchdata and more — or pick the DLL yourself
- «Test signature» signs and verifies a sample and shows the holder, issuer and expiry date — with a warning a month before the certificate expires
- Automatic signing every N minutes, or from Task Scheduler with QFEta.exe --sign-once without opening the window
- Each signature is verified before it is sent, and one problem document does not stop the others; the log shows what was signed and why something failed
- Also supports a PFX certificate file for testing against the ETA preproduction environment
- The password and PIN are kept only if you choose, encrypted with Windows DPAPI for this Windows user on this PC
- Arabic (right-to-left), English and French, dark and light themes, a single portable EXE
How to install
- Install the driver of your signing token from the certificate issuer (usually ePass2003 for Egypt Trust and MCDR) and plug the token in.
- Download the EXE (or the ZIP) and run QFEta.exe directly, no install. If "Windows protected your PC" appears, click More info then Run anyway.
- Enter the program URL, username and password (best: a dedicated user with only the «E-invoice — Post» permission) and click «Test connection».
- Pick the token driver, enter the PIN and click «Test signature», then «Sign now» or turn on automatic signing.
Release notes
- First release: CAdES-BES signing with a USB token or a PFX file, manual and automatic signing, Task Scheduler mode
- First release: CAdES-BES signing with a USB token or a PFX file, manual and automatic signing, Task Scheduler mode
FAQ
Does it submit to the ETA directly?
No: it only signs and returns the signature to the Qaswara ERP, which submits to the ETA and tracks each document.
The token is not listed?
Its driver must be installed. Egypt Trust and MCDR usually use ePass2003. If it is installed but not listed, click «Browse…» and pick the PKCS#11 DLL from C:\Windows\System32.
Can it run on its own?
Yes: turn on «Sign automatically every» and leave it open, or create a Task Scheduler task with QFEta.exe --sign-once after ticking «remember» for the password and PIN. The token must stay plugged in.
The PIN got locked?
Tokens lock after a few wrong attempts — contact the issuer. That is why you should test the PIN once first with «Test signature».
