FNMT certificate in Spain: practical guide after the NIE

FNMT certificate in Spain: practical guide after the NIE

5 min read
Back to articles
TL;DR Résumé rapide pour les pressés

The FNMT Digital Certificate is free and valid for 4 years. It gives you access to 100% of Spanish government portals (Tax Agency, Social Security, DGT, Notaries). The process requires a single in-person visit, but be careful: the most common mistake — switching browsers — blocks 80% of applicants. Follow this expert guide to get it right the first time.

Spain built its e-government around one simple principle: every citizen must be able to prove their identity online in a cryptographic way. For Spanish nationals, that tool is the DNIe (chip-based national ID card). For EU expats such as Belgians, French, Dutch or Germans, it is the Digital Certificate issued by the Spanish National Mint and Stamp Factory (FNMT).

In practice, this certificate is a cryptographic file installed in your web browser. When a government portal asks you to identify yourself, your browser automatically presents that file — like a secure digital badge.

1. What FNMT actually unlocks

  • Spanish Tax Agency (Hacienda / Agencia Tributaria): Income tax returns, VAT filings, Models 720/721.
  • Social Security (TGSS): Self-employed registration, contribution records.
  • DGT: Driving licence points, fines, change of address.
  • Town Halls (Ayuntamiento): Padrón registration, residence certificates.
  • Cl@ve activation: Once FNMT is installed, Cl@ve can be activated online instantly.

2. Prerequisites: What you need before you start

  • Your Spanish NIE number.
  • Valid ID document (Belgian ID card or passport).
  • Accessible email address.
  • Computer with one dedicated browser (Firefox strongly recommended).

Which browser should you use?

  • Firefox has historically been the most stable option for the FNMT process.
  • Chrome also works well.
  • Safari on macOS can cause issues with AutoFirma — avoid it for the initial installation.

3. The full step-by-step tutorial

Golden rule: do not change computer, browser or user profile between the first and the last step.

1
Pre-configuration
Install the configuration software on sede.fnmt.gob.es. It prepares your browser to generate the secure keys.
2
Request the Código de Solicitud
Enter your NIE and email on the FNMT website. You will receive a code by email, valid for 10 days.
3
In-person verification
This is the mandatory step. Go to an office (Tax Agency, Social Security or Town Hall) with your Code and identity documents.
4
Download and installation
Return to the same computer/browser 24 hours later and download the file. It installs silently.
5
Backup (.p12)
CRITICAL: Export your certificate as a .p12 file with a password. Without that, it is gone if your laptop dies.

4. The 5 mistakes that block 80% of expats

MistakeConsequenceSolution
Switching browserInvalid certificateStay on the same browser from start to finish
Skipping step 1Key generation errorInstall the configuration software BEFORE the request
Waiting more than 10 daysCode expiresRestart the process from the beginning
Mistake in your first nameTax Agency rejectionEnter your first name EXACTLY as it appears on your passport
No .p12 exportIrreversible lossExport your certificate IMMEDIATELY after installation

5. After installation

Once installed, test it on sede.agenciatributaria.gob.es. Your browser should automatically offer your certificate.

On-the-ground tip — Amory, Altafulla

  • Check that you can access your Carpeta Ciudadana (carpetaciudadana.gob.es).
  • That is where the Spanish administration drops your official notifications.
  • Ignore them, and you can end up with fines without even knowing it.

6. Renewal: do not let it expire

The FNMT certificate is valid for 4 years. Renew it fully online 2 months before expiry. If you miss the deadline by even one hour, you will have to go back physically to a Tax Agency office.

FAQ

Is the FNMT Certificate free?
Yes, completely free for individuals (Persona Física). If you are registered as self-employed in Spain, this is still the certificate that applies to you.
How long between the office visit and the download?
Usually 24 hours. Some Tax Agency offices validate within minutes, others process everything in batches later the same evening.
Can I install it on multiple machines?
Yes, if you created the .p12 backup (step 5). Just import that file into your other browsers.

.