If you have tried to access Spanish government services online — to file a tax return, check your social security entitlements, or manage your residency status — you have probably encountered a request to identify yourself with a certificado digital (digital certificate) or Cl@ve. For expats in Spain, the digital certificate is one of the most useful bureaucratic tools available, and getting one is well worth the effort of the initial setup.
This guide explains exactly what a digital certificate is, why you need it, and precisely how to obtain one — including the in-person step that catches many people out.
What is a Digital Certificate (Certificado Digital)?
A digital certificate is an electronic file installed on your computer (or stored on a smart card, such as the TIE residency card for non-EU nationals, which has a chip that functions as a certificate). It proves your identity to Spanish government websites and allows you to sign and submit forms online as if you were present in an office.
The most widely used digital certificate for individuals in Spain is issued by the FNMT — the Fábrica Nacional de Moneda y Timbre, Spain's national mint, which acts as a certificate authority. The FNMT certificate is free to obtain and is accepted across all central and regional government platforms in Spain.
Once installed, the certificate appears in your browser or operating system's certificate store. When you visit a Spanish government website requiring identification, your browser presents the certificate and the site verifies your identity automatically — no username, no password, no one-time code. It is a seamless and secure experience once set up.
Why Expats Need a Digital Certificate
The digital certificate unlocks a remarkable range of online services that would otherwise require a trip to a government office — or delegation to a gestor. Here is what you can do with it:
- File your annual Spanish income tax return (IRPF) directly through the AEAT website — no gestor required for a straightforward return
- Access the AEAT's online portal to view your tax data, check past returns, request tax certificates, and manage notifications
- Manage your Seguridad Social (social security) record — check contributions, request benefit statements, and handle autónomo social security matters
- Register as autónomo — submit the registration forms online without visiting a tax office
- Track and manage residency applications through the Extranjería (immigration) system
- Access your DGT driving licence and vehicle records online
- Receive official communications electronically — Spanish authorities increasingly send official notifications to the digital inbox (Dirección Electrónica Habilitada), which requires a digital certificate to access
- Sign official documents digitally — legally equivalent to a wet signature in Spain
- Manage matters with regional authorities — most autonomous communities accept the FNMT certificate on their platforms
For autónomos especially, the digital certificate is almost essential. Most of the quarterly filings, model submissions, and social security communications that autónomos need to manage can be done online with a certificate — making the difference between spending an afternoon at a government office and a few clicks at your desk.
The FNMT Certificate — Step-by-Step Process
The process for obtaining the standard FNMT software certificate (Certificado de Persona Física) has three stages. They must be completed in the correct order — you cannot skip the in-person step or do it before the online application.
Go to the FNMT website (www.sede.fnmt.gob.es) and navigate to the digital certificate application section. You must do this on the same computer and browser you intend to use for the certificate — the certificate will be tied to this browser installation. Select "Solicitar Certificado" and enter your NIE number. The system will generate a unique application code and email it to you. Note this code carefully — you will need it at the office.
Within a limited window after completing the online application, you must visit an authorised registration office to verify your identity. The most common options for expats are:
- Any Agencia Tributaria (AEAT) office — this is usually the easiest option and offices are found across Spain
- Any Seguridad Social office
- Some town halls (ayuntamientos) also offer this service — check locally
You do not always need an appointment, but many AEAT offices now operate on an appointment system (cita previa). You can book a cita previa on the AEAT website — search for "Certificado Digital" as the reason for your visit.
After your in-person identity verification, return to the FNMT website from the same computer and browser you used in Step 1. Enter your NIE number and the application code. The certificate will be downloaded and installed into your browser's certificate store. You can then export a backup copy — this is strongly recommended, as losing the certificate means repeating the entire process.
What to Bring to the In-Person Appointment
When you attend the identity verification appointment, bring the following documents:
- Your NIE document or TIE card — the document bearing your NIE number and a photograph. For non-EU nationals, the TIE biometric card is the standard document. For EU nationals, the EU residence certificate (certificado de registro) bearing your NIE may be accepted, alongside your passport or national ID card
- Your passport — always bring this as backup identification even if your TIE/NIE document is your primary ID
- The application code from Step 1 — either printed or on your phone
The officer at the office will check your documents, verify your identity against the application, and confirm the registration. The process typically takes five to ten minutes once you are seen. There is no fee for the identity verification or for the certificate itself.
Which Browser to Use — and Why It Matters
The FNMT software certificate is installed into a specific browser's certificate store. This means that if you apply and download in Chrome, the certificate is in Chrome. If you try to use it in Firefox or Edge, it will not be there — unless you export and import it manually.
For most users, Chrome or Firefox works well for the FNMT certificate process. Internet Explorer and older browsers are no longer supported. Some government platforms work better in certain browsers — if you find that a site is not recognising your certificate, try a different browser.
If you use multiple computers — a desktop and a laptop, for example — you will need to export the certificate file and import it into each device's browser. The FNMT provides instructions for export and import on their website.
Common Problems and How to Avoid Them
Not Completing the Download on the Same Computer
This is the most common mistake. Steps 1 and 3 — the online application and the download — must be completed on the same computer and the same browser. If you change computers between these steps, your application code will not work. Use a laptop if you need to take it to an office and come back.
Forgetting to Back Up the Certificate
Once installed, export your certificate immediately as a .p12 file and save it to a secure location — an external drive, an encrypted cloud folder, or a USB stick stored safely. If your hard drive fails, your browser data is cleared, or you change computers without exporting, the certificate is lost and you will need to apply again from scratch including another in-person visit.
Certificate Expiry
The FNMT certificate is valid for four years. Set a calendar reminder for six months before expiry. Renewal can be done entirely online (without visiting an office) if you renew before the certificate expires. If you let it expire, you must go through the full process again.
Difficulty Getting a Cita Previa
AEAT offices in popular areas can have long waits for appointments. If your local office has a long wait, try a less busy office in a nearby town. You can attend any AEAT office in Spain — it does not need to be in the province where you live.
The Cl@ve Alternative
For services that do not require the full authentication level of a digital certificate, the Spanish government's Cl@ve system offers a simpler digital identity solution. Cl@ve has two levels:
- Cl@ve PIN: a one-time code sent to your mobile phone or email, used for lower-risk transactions. Registration can be done online or at an AEAT office.
- Cl@ve Permanente: a password-based system offering a higher level of authentication, accepted for a broader range of services than Cl@ve PIN.
Cl@ve is easier to set up than the FNMT certificate, but it is not accepted for all government platforms and cannot sign documents. For expats who need full access to all Spanish digital government services, the FNMT digital certificate is the more comprehensive solution. Many expats use both — Cl@ve for quick, lower-stakes interactions, and the digital certificate for tax filings and more sensitive transactions.
TIE Card as a Digital Certificate
If you are a non-EU national holding a biometric TIE (Tarjeta de Identidad de Extranjero) card, your card has a chip that can function as a digital certificate — but this requires a card reader and additional software. Many expats find the FNMT software certificate simpler to set up and use than the TIE chip, which has a more complex setup process. Both are valid options, and your gestor can advise on which is more practical for your specific situation.
How a Gestor Can Help
If you struggle with the digital certificate process — or simply cannot spare the time for the AEAT appointment — your gestor can handle many of the tasks that a digital certificate enables on your behalf. A gestor with their own digital certificate and power of attorney (apoderamiento) from you can file your tax returns, manage your Seguridad Social, and handle official communications without you needing your own certificate. That said, having your own certificate gives you independence and the ability to check your own records whenever you need to — a valuable thing once you are settled in Spain.
Settling in Spain? Make Sure Your Insurance is in Order
Health insurance, home insurance, car insurance — our English-speaking team arranges the right cover for expats across Spain. Available 7 days a week.
Get in Touch Today