Certificado digital, Cl@ve, DNIe: the complete guide to digital ID in Spain
Spanish bureaucracy has moved online — but forgot to explain how to get in. What is a certificado digital, what is Cl@ve for, where does DNIe fit in, and how to get any of them with a NIE? This guide has the answers.
Why you need this
If you live in Spain, sooner or later you'll need to do something official: file your income tax return, book a Seguridad Social appointment, check a traffic fine on the DGT website, request a certificate for immigration paperwork, or renew your residence permit. All of this is now done online — but only if you can prove who you are.
That's exactly what certificado digital, DNIe and Cl@ve are for. All three solve the same problem — identification — but in different ways and with different capabilities.
Want RightNOW to guide you step by step to the result?
The RightNOW Action Plan for getting a digital certificate (certificado digital) or Cl@ve: we review your situation, identify the documents you need, set out the steps in the right order and guide you through the process.
Get the Action Plan for €59 →NAVIShow me the fastest way to get my certificado digital
NAVI shows the fastest way to get it.
What is electronic identification
When you walk into a government office you show your passport or NIE and the clerk knows who you are. Online, there's no such window. Electronic identification is the way to tell a government website: "I am the person with this NIE". The site then gives you access to your data and lets you take authorised actions.
Spain recognises several methods of digital identification. These methods are legally recognised forms of electronic identification, rather than simply usernames and passwords.
Don’t want to read the whole guide to find out what applies to you? Describe your situation and RightNOW will tell you whether Cl@ve is enough or you need the certificate, and what to prepare.
Work out what I need →What options exist
How they differ
Certificado digital — the most powerful
It's a file (or browser record) containing your data encrypted with cryptographic keys. When a government website asks for identification, the browser presents that file automatically. No password needed — the system instantly knows who you are.
Beyond identification, the certificate lets you sign documents with full legal effect — equivalent to a handwritten signature, but digital. This is what you need to sign contracts, powers of attorney, or file appeals online.
DNIe — certificate on a card
Since 2006 the Spanish DNI has contained a chip with two electronic certificates: one for identification, one for signing. Functionally identical to the certificado digital, but the keys are stored on the physical card — requiring a card reader, which most laptops lack. For foreigners with NIE rather than DNI, this option is not available.
Cl@ve — easiest, but limited
Cl@ve is a login platform, not an FNMT certificate. It lets you access government websites via SMS code (Cl@ve PIN) or permanent password (Cl@ve Permanente). Cl@ve covers most everyday tasks — viewing tax data, requesting documents, booking appointments. Signing works only in procedures that support Cl@ve Firma and require advanced registration; some serious procedures may still require an FNMT certificate or DNIe.
Cl@ve Permanente — login + fixed password. With advanced registration it unlocks more features and lets you use Cl@ve Firma in compatible procedures.
How to register for Cl@ve: step by step
Three ways to register for Cl@ve
Works if you don't have a certificado digital but are registered in the Spanish padrón (census).
- Go to clave.gob.es → "Registro" → "Sin certificado electrónico".
- Enter your NIE/DNI, date of birth, country of birth and email.
- The system will inform you that AEAT will send a letter containing a CSV code to your registered padrón address.
- Wait for the letter — usually 1–3 weeks. The address must match your current padrón registration.
- When the letter arrives, go back to clave.gob.es → "Activar Cl@ve Permanente" and enter the CSV code.
- Create a password — Cl@ve Permanente is now active.
The fastest route if you already have the certificate installed in your browser.
- Go to clave.gob.es → "Registro" → "Con certificado electrónico".
- Your browser will present the certificate automatically — confirm the selection.
- Review your details (NIE, name) and choose a password.
- Done — Cl@ve Permanente activated instantly.
This option allows you to complete the registration in person and leave with an active account.
- Go to any AEAT (Tax Agency) or Seguridad Social office with your passport or NIE.
- Tell the officer: "Quiero registrarme en Cl@ve Permanente."
- They will verify your documents and register you on the spot.
- You choose your password during the appointment, and the account is activated the same day.
Security level: básico vs alto
Registration gives you nivel básico by default — enough for most government services. But to use Cl@ve Firma and higher-security procedures, you need advanced registration.
2. Visit an AEAT office, complete advanced registration for Cl@ve Permanente and verify your identity for the FNMT certificate during the same appointment.
3. Download the certificate later from the same browser. Both procedures may be completed during the same visit if you bring the application code.
How to get a certificado digital: step by step
The most common route is through FNMT (Fábrica Nacional de Moneda y Timbre — Spain's Royal Mint). It is free and available to people with a DNI or NIE; the exact validity period is shown inside the certificate itself.
Standard process (online + one visit)
- Go to sede.fnmt.gob.es → "Certificado de Persona Física" → "Obtener Certificado Software".
- Enter your NIE or DNI, name and email. The system will send you a código de solicitud — save it, you'll need it later.
- Visit an accreditation office: AEAT (tax office), Ayuntamiento, Seguridad Social or another authorised point. Bring your NIE/DNI and the código de solicitud.
- After accreditation an email will arrive. Open it on the same computer and the same browser you used for the request — this is critical.
- Follow the link in the email to download the certificate. It installs automatically in the browser.
- Immediately export it as a .p12 file and store it somewhere safe (cloud, external drive). This is your backup.
Alternative routes
FNMT offers video identification for €2.99 + tax. The current FNMT page says this route requires a valid DNIe.
If you have Cl@ve Permanente with advanced registration, you can sign in procedures that support Cl@ve Firma. This is not the same as having an FNMT certificate installed in your browser.
FNMT lists more than 2,400 accreditation offices. AEAT, Seguridad Social and other offices may require an appointment; always check the office locator and the specific office conditions.
Which one is right for you
2. Get a certificado digital from FNMT — for full functionality, document signing and immigration procedures.
Both are free. Having both is the best setup.
A real case: one detail changed the outcome
He signed up for electronic notifications himself — and lost a year without once opening the mailbox. In February 2016 a private individual — not among those obliged to deal with the administration electronically — voluntarily subscribed to the tax agency’s electronic notification service (AEAT). On 5 October 2022 the agency placed in his electronic mailbox (dirección electrónica habilitada, DEH) a decision making him subsidiarily liable for someone else’s tax debt. He never opened it. He learned of it only on 15 October 2023, when he went to ask why part of his salary was being garnished and was handed the document in person. On 21 November 2023 he filed an appeal to the tax agency itself (recurso de reposición) — it was rejected as out of time. He then challenged that refusal before the regional economic-administrative tribunal (TEARC), which also refused to hear it; on 15 July 2026 the High Court of Catalonia agreed with both and added €2,000 in costs.
What was not obvious. The certificate is not the trap. Subscribing to electronic notifications is a separate act, and holding a certificado digital does not enrol you in it. But once you have subscribed, art. 14.1 Ley 39/2015 — “individuals may choose at any time whether to communicate electronically” — starts working against you: the choice has been made, and the court treats it as binding. Then art. 43.2 Ley 39/2015 kicks in: if ten calendar days pass without the notification being opened, it is deemed rejected, and a rejected notification is deemed served (art. 111.2 LGT). The month for a recurso de reposición is set by art. 223.1 LGT — the very provision the court applied; for the next step, a reclamación económico-administrativa, the same month comes from art. 235.1 LGT. Either way it runs from the date the notification counts as served, not from the day you find out about it. The court put it plainly: you cannot ask for the electronic channel and then not read it — the failure to access is attributable to you alone. The courtesy email is a convenience, not a condition of validity.
Outcome: the right to challenge someone else’s debt was lost entirely — no instance examined the merits, the salary garnishment stayed in place, and €2,000 in costs were added. The judgment does not state the size of the underlying debt.
The rules are in force: arts. 14.1 and 43.2 Ley 39/2015, arts. 111.2 and 223.1 LGT. A High Court judgment creates no binding precedent, and this one was not final — cassation remained open for 30 days. The practical lesson is not “do not get a certificate” but “know what you are subscribed to”: under that same art. 14.1 the channel can be changed at any time, and while the subscription is live the mailbox has to be opened.
The guide above is about getting access. A separate question is what starts counting as served on you personally once you have it. Check whether you are already signed up for electronic notifications and have forgotten about it.
Check my situationFAQ
Can I get the certificate from outside Spain?
The standard FNMT process requires accreditation at an authorised office. Video identification is remote, but FNMT currently limits it to people with a valid DNIe. If you only have a NIE, plan for in-person accreditation or check whether there is an authorised office that works for you.
How long is the FNMT certificate valid?
The validity period is shown inside the certificate itself. Check it in the certificate details before relying on it for a procedure.
Renewal can be requested during the 60 days before expiry if the certificate has not been revoked. If it was obtained with another certificate, DNIe, video identification or had already been renewed before, FNMT may require new in-person accreditation, video identification or DNIe.
Is Cl@ve accepted everywhere?
Not everywhere. The main national bodies (Agencia Tributaria, Seguridad Social, SEPE, DGT) accept Cl@ve. But some regional platforms, courts and immigration procedures require a certificate or DNIe. When in doubt, the digital certificate is generally the more widely accepted option.
I reinstalled Windows. What happened to my certificate?
If you did not export it beforehand, it was lost when the old system was removed or reinstalled. That's exactly why you must export the .p12 file immediately after installation. With that file you can reinstall the certificate in any browser at any time.
I have a NIE but I'm not an EU citizen. Can I get the certificate?
Yes. The FNMT digital certificate is available to anyone with a valid NIE, regardless of nationality. It is one of the most versatile digital identification tools for foreigners in Spain.
Official sources
Everything stated above about the legal side can be checked at source. These links go to official texts and government portals.
- Ley 39/2015 — the administrative procedure act. Art. 9 lists the accepted means of electronic identification, art. 14 gives an individual the right to choose the channel, art. 43 governs how an electronic notification is served and when it counts as rejected.
- Ley 6/2020 — the Spanish act on electronic trust services: the legal force of electronic signatures and certificates.
- Regulation (EU) 910/2014 (eIDAS) — the EU framework for electronic identification and signatures that the Spanish act implements.
- Real Decreto 203/2021 — the regulation on how the public sector operates electronically: electronic offices (sede electrónica), registers, notifications.
- Ley 58/2003 (General Tax Act) — the tax side: art. 111.2 (a rejected notification counts as served) and art. 223.1 (one month to file a recurso de reposición).
- sede.fnmt.gob.es — the FNMT electronic office: request, download and renew the certificado digital, and find accreditation offices.
- clave.gob.es — the official Cl@ve portal: registration, levels, and which bodies accept it.
- sede.agenciatributaria.gob.es — the tax agency electronic office: subscribing to electronic notifications and reading them.
- seg-social.es — Seguridad Social: certificate accreditation and Cl@ve login.
Need help navigating Spain's bureaucracy?
RightNOW helps with immigration questions, complaints and consumer rights in Spain. Describe your situation and get a clear first step.
Describe my situation →Information accurate at time of publication. Spanish government procedures change — always check official sources at sede.fnmt.gob.es and clave.gob.es.
Want everyday protection in Spain from bureaucracy?
Included: checks of Spanish documents, letters, requests and contracts before signing, Action Plans, consultation and sending your claims by burofax.
📩 Foreigners are the last to hear what affects them directly — laws, rules, new fees and opportunities.
We won't forget you. Leave your email — we'll explain it simply, in your language.
Checked by the RightNOW team · Change history
- Participation in the OVHcloud Startup Program was removed; the OVHcloud mark and the membership badge no longer appear. Versions: EN, ES, RU, FR, RO, PT, AR, UK, DE, NL, PL
- The programme logos in the shared site footer were restyled; the page text did not change. Versions: EN, ES, RU, FR, RO, PT, AR, UK, DE, NL, PL
- The AI Pact programme statement now records the signed Pillar II voluntary pledges and links to the European Commission signatories list. Versions: EN, ES, RU, FR, RO, PT, AR, UK, DE, NL, PL
- Participation in EU AI Pact Pillar I was added to the programme information. Versions: EN, ES, RU, FR, RO, PT, AR, UK, DE, NL, PL
- Participation in the Google for Startups Cloud Program and OVHcloud Startup Program was added. Versions: EN, ES, RU, FR, RO, PT, AR, UK, DE, NL, PL
- Programme and certification marks were added to the shared site footer. Versions: EN, ES, RU, FR, RO, PT, AR, UK, DE, NL, PL
- Legal basis, deadlines and figures re-checked against official sources.
- Language review: wording and terms checked, corrections applied. Versions: RU, EN · Антон Белянский, QA review
- Page published.
This guide is general information about Spanish law, not a legal opinion on your case. Rules change and outcomes depend on your own facts and documents — check your situation before you act on it.