To issue an El Fatoora e-invoice, the issuer must sign it with a qualified electronic certificate from ANCE, Tunisia's national electronic certification agency, which operates under the TunTrust brand. You choose a certificate type that fits how you will sign, prepare the company and identity documents, and apply. The certificate then has to be renewed before it expires and stored so that nobody can copy the key.
This guide covers the choices and the practical traps. Product names, prices and document lists change: confirm them on TunTrust's site or with its support before applying.
Official sources: TunTrust (ANCE) for certificates, and the government procedure page on e-invoicing enrolment, which lists the qualified ANCE certificate as a prerequisite.
Why the certificate matters
The signature proves who issued the invoice and that it has not changed since. TTN checks it before registering the invoice. No valid signature, no registered invoice. An expired or revoked certificate stops all your e-invoicing until it is replaced, which is why the certificate deserves the same attention as your bank access.
Choosing the certificate type
The right type depends on who signs and how often.
- A personal signing certificate on a cryptographic USB token. A named person, usually the manager or an authorised employee, signs with the token plugged into a computer. Good for manual signing on the TTN portal or desktop software.
- A remote or mobile signature service. TunTrust offers mobile signature (DigiGO), where the key is held by the provider and the signer approves from a phone. Convenient when the signer moves around.
- A certificate suited to automated signing. When software signs invoices without a person approving each one, ask TunTrust which certificate and storage it supports for server-side, unattended use.
A practical rule: if a person will approve each invoice, a personal certificate is fine. If invoices are generated and sent by a system, plan for automated signing from the start rather than plugging a token into a server.
Documents to prepare
The exact list is on TunTrust's site and depends on the product. For a company certificate, expect to provide documents such as:
- The company's registration extract from the national business register (RNE).
- The tax identification document showing the matricule fiscal.
- Identity documents of the legal representative and of the certificate holder.
- A mandate or authorisation if the holder is not the legal representative.
- The signed subscription form and payment.
Make sure the company name, address and tax ID are identical on every document and in your El Fatoora enrolment. A mismatch is the most common cause of delay.
Renewal without a gap
Every certificate has a validity period printed on it. Renewing late means a day with no invoicing. Set it up properly once:
- Record the expiry date in a shared calendar and in your monitoring, with an alert a month before.
- Start the renewal procedure as soon as TunTrust allows, with the same documents checked again.
- Check whether the new certificate must be declared on your El Fatoora account before use.
- Test a signature with the new certificate in the test environment before the old one expires.
- If a holder leaves the company, revoke their certificate and issue a new one to the next person.
Storing keys safely
Whoever holds the private key can issue invoices in your name. Treat it like a cheque book.
- Tokens: kept by the named holder, never left in a shared machine, PIN never written on the token.
- Server-side keys: in a hardware security module or a dedicated signing service, never in the code repository, a shared drive or an email.
- Access: log every signature with who or what triggered it.
- Loss or theft: know the revocation procedure before you need it.
How software uses the certificate
In an integrated setup, signing is a separate step between generating the TEIF XML and sending it to TTN. The software passes the exact XML to a signer that holds or reaches the key, gets back the signed XML and sends those exact bytes. The signer can be a library using the token through its driver, a remote signing API, or an HSM. The rest of your system never sees the key.
A realistic order of work
The certificate is one step in a chain, and it is the one with the longest lead time. A sensible sequence for a company preparing for El Fatoora:
- Week 1: decide who or what will sign, and check that company documents are consistent with each other.
- Week 1-2: apply for the certificate and start El Fatoora enrolment in parallel.
- Once the certificate arrives: install it (token driver, mobile app or signing service) and sign a test document.
- Then: connect it to your invoicing route, the TTN portal or your software, and run test invoices.
- Before go-live: write down the renewal date, the revocation procedure and who to call when signing fails.
Writing the last point down sounds trivial. It is what saves a day of blocked invoicing when the holder is on leave and the token is in a drawer.
If you use Odoo, the signing step is part of the El Fatoora connector; see Odoo ERP. For custom platforms, see web development.
FAQ
Can my accountant sign invoices for us?
Only with a certificate and authorisation issued for that purpose. Ask TunTrust and your accountant how delegation works for your case.
Do I need one certificate per employee?
One per person who signs. For automated signing, one certificate for the system.
How long does it take?
It depends on TunTrust's processing and on your documents being consistent. Apply well before you need it.
Singleton Solutions can set up the signing step in your invoicing software. Ask us how.