How to get a digital certificate in Spain (FNMT)

By Brenda Lins BritoUpdated 8 min read
FNMT Sede Electrónica page on the citizen digital certificate, with the four ways to obtain it outlined

In a hurry? Summarise this article with the AI of your choice:

In short: the digital certificate (‘certificado digital’) is a free certificate from the FNMT that lets you sign and file online with Spain's administration. You need a DNI or NIE.

You request it online, verify your identity, then download it on the same computer, with the same user.

With an NIE, that check is in person for now: at an office in Spain, or at a Spanish consulate abroad (not an honorary one).

The path, in four steps:

  1. Install the FNMT software.
  2. Request it online and get your code by email.
  3. Verify your identity at an office.
  4. Download it and make a backup copy.

What is a digital certificate in Spain?

It's a digital signature installed in your browser that proves who you are online.

When a procedure needs it, a window opens: you pick your certificate and go on.

The free one comes from the FNMT (‘Fábrica Nacional de Moneda y Timbre’). Its citizen certificate (‘Certificado de Ciudadano’, or ‘persona física’) is what people call the FNMT digital certificate.

Other providers issue certificates too. The Tax Agency accepts those of providers the government authorizes.

Logo of the Fábrica Nacional de Moneda y Timbre (FNMT), Real Casa de la Moneda

What can you do with it?

Procedures online, with the administration and with private companies. The FNMT gives these examples:

  • filing and paying taxes, with the Tax Agency (‘Agencia Tributaria’);
  • appeals and complaints to the administration;
  • checking or registering on your town's ‘padrón’;
  • checking traffic fines;
  • signing official forms and documents.

It also opens your Social Security area (Import@ss). Our Spain tax calendar shows when each tax return is due.

Is it free?

Yes, the FNMT's certificate costs nothing. Video identification has a fee, €2.99 plus tax, and for now it only works with a valid Spanish DNI.

‘Gestorías’ and online services charge to make the request for you, or for a certificate from another provider.

We offer one too: a certificate from another European provider recognized under eIDAS (not the FNMT), valid for two years, from abroad and with no appointment, for €149. You need your NIE.

Digital certificate or Cl@ve?

Cl@ve is a login, the certificate is a signature you hold. Both open many government websites.

  • Cl@ve is the government's login system: you confirm on your phone or with a password. With an NIE, you can register online with an invitation letter posted to your tax address. Registering by video is, for now, only for Spaniards with a valid DNI.
  • The certificate lives in your browser and signs documents. It's also one way to log in through Cl@ve.

Each website decides which methods it takes, and some services need a stronger Cl@ve registration (in person, or online with a certificate or DNIe). Cl@ve can sign too, in the cloud, but not with the basic registration (the letter).

Who can get one, and what do you need?

Any adult with a DNI or NIE (or an emancipated minor), Spanish or foreign, can get the FNMT certificate.

So you need your NIE first: our NIE guide explains how to get it.

Can you apply with an NIE, a TIE or a CUE?

Yes, with two documents: one that shows your NIE, plus your passport (or, for EU citizens, your national ID card).

At the identity check, the FNMT asks for your request code and:

You are Bring
An EU citizen Your CUE or a foreigner's ID document showing your NIE, or the official document granting your NIE, plus your passport or national ID card
A non-EU citizen Your TIE or another foreigner's card showing your NIE, or the official document granting your NIE, plus your passport

The document granting your NIE (and, for non-EU citizens, the card) only has to show your number, so it can be expired. Your passport or ID card must be valid and original, or an officially certified copy.

Can someone go in your place?

Only with a notary. The FNMT expects you to go yourself. Someone else can go for you if a notary has certified your signature on the contract, and the FNMT doesn't accept a power of attorney for it.

Four ways to get it, and which one works with an NIE

The FNMT lists four ways. With an NIE, plan on an office: video identification and the DNIe need a Spanish DNI, and the FNMT doesn't say whether NIE holders can use its app.

Way Who can use it Cost How
At an office Everyone, NIE holders included Free At an office in Spain, or a Spanish consulate abroad (not an honorary one)
By video Holders of a valid Spanish DNI, for now €2.99 plus tax From a computer, with your phone for the video; reviewed in about two working days
With a DNIe Spaniards with an electronic DNI Free With a card reader, without going to an office
In the FNMT app Video in the app: valid DNI only Free (video: €2.99 plus tax) Request on your phone, then verify by video, at an office or with a DNIe

Can you do it by video with an NIE?

No, not for now. The FNMT says its video identification currently only takes a valid DNI, and that other documents will follow "in the future".

Can you get it from abroad, at a Spanish consulate?

Yes, at a Spanish career consulate (‘Oficina Consular de carrera’), not an honorary one.

You request it online as usual, then take your code and documents to the consulate.

Check your consulate's own rules: London and Ottawa, for example, ask for an appointment, and the download comes one to a few days later.

How to get the FNMT certificate, step by step

Do the steps in order, on the computer you'll keep.

Step 1: Install the FNMT software first

Download the Configurador FNMT-RCM from the FNMT's website (Windows, Mac or Linux) and install it. It creates your keys, and without it the request won't go through.

Antivirus software and proxies can block it.

Step 2: Request it and get your code (‘código de solicitud’)

On the FNMT's request page, enter:

  • your NIE;
  • your first surname, exactly as on your ID document;
  • an email address.

You also choose a password. Write it down: it can't be recovered, and without it you start again.

Your request code arrives by email. You'll need it at the identity check and to download.

The Tax Agency's tip: book the identity check first, then make the request.

Step 3: Verify your identity (‘acreditación de identidad’)

Go to an office with your code and documents (where to go, below).

Step 4: Download and install it

You can usually download it within about an hour of the check: do it as soon as you can.

On the FNMT's download page, enter your NIE, your first surname as you typed it and your request code, then the password from step 2.

Can you use another computer?

Not for the download. Once it's installed, you move it with the backup copy (below).

What if the download says your request isn't found?

It may mean your identity hasn't been verified yet, or the office didn't complete the process. The FNMT asks you to email ceres@fnmt.es with your NIE, first surname, request code, the date and the office, under the subject "NO GENERADO".

Then make a backup copy (.pfx or .p12)

At the end of the download, accept the backup copy it offers. If you skip it, export it later from your browser with the private key, protected by a password: you get a .pfx or .p12 file.

Keep it on a USB stick or another safe place. Without it, the only way back is a new certificate.

Where to verify your identity in person

At one of the FNMT's more than 2,400 offices in Spain: Tax Agency and Social Security offices, and other offices that have an agreement with the FNMT, including some town-hall offices listed in the locator. Post offices (Correos) don't.

Find the nearest one on the FNMT's office locator.

Check with the office about an appointment: the Tax Agency, Social Security and other offices require one.

Common mistakes

  1. Requesting before installing the software. The request won't complete.
  2. Typing your surname differently. The download asks for it exactly as you entered it in the request.
  3. Downloading on another computer, user or browser. It won't work (step 4).
  4. Forgetting the password. It can't be recovered: you request again.
  5. Skipping the backup. A new computer then means a new certificate.
  6. Planning on video with an NIE. For now, video needs a valid DNI.

Using it on your phone, a Mac or several devices

Install your backup copy on each device. The FNMT says one backup can go on both a computer and a phone.

  • iPhone or iPad: email the .pfx or .p12 file to yourself in the Mail app, or save it to iCloud. Tap it and follow the steps.
  • Android: copy the file to your phone, then install it from the phone's settings (Security, credential storage) with its password.
  • Mac: open Keychain Access, choose the login keychain, then File, Import Items, and pick your file.
  • Several browsers: import the same file into each one.

What is Autofirma?

The government's app for signing documents with your certificate. You download it from firmaelectronica.gob.es.

You also need it to cancel your certificate online.

How long it lasts: renewing, cancelling or replacing it

The expiry date is written in your certificate: check it there.

Renewing

Online, in the 60 days before it expires, while it still works and hasn't been cancelled. You request the renewal with the certificate installed in your browser, get a new code by email, and download it about an hour later.

Online renewal works once. The next time, or if the certificate has expired, you verify your identity again: with an NIE, at an office.

Cancelling or revoking it

Do it as soon as you think someone else has it. Three ways:

  • online, if you still have it (you need Autofirma);
  • at an identity office, if you lost it;
  • by phone, any time, with your request code: 917 406 848 or 913 878 337.

A cancelled certificate can't be reactivated: you request a new one.

Can you have more than one certificate?

No, one at a time. A new FNMT certificate cancels the old one as soon as it's issued. The only overlap is during a renewal, until the old one expires.

Letting a ‘gestor’ act for you

Give them a power, not your certificate. The FNMT strongly advises never handing it to anyone. In 2019, the State Secretariat for Digital Progress noted that handing it over, or revealing its keys, doesn't comply with the law.

A power of attorney (‘apoderamiento’) lets them act in your name instead:

  • Tax Agency: online with your certificate or Cl@ve, at one of its offices, or with a notarized document. You choose which procedures it covers.
  • Social Security: in Import@ss, by procedure or subject.
  • The rest of the State administration: the general register of powers, online or at a registry office, for up to 5 years.

If a ‘gestor’ already has your certificate, request a new one: the old one stops working.


Share this article

Share this article

Our readers also viewed

Spain's MI-T residence permit application form, with the international teleworker (digital nomad) box outlined
  • Spain Digital Nomad Visa from Spain
  • Spain Digital Nomad Residence Permit
17/11/2026

Spain Digital Nomad Visa from Inside Spain: 2026 Guide

Already in Spain as a visitor? Apply online for the 3-year digital nomad permit: who can, €2,442 a month, the 20-day decision, entry proof and your TIE.

BrendaContent and Social Media Manager
Remote worker with a laptop on a beach, sitting against an orange suitcase covered in stickers
  • Spain Digital Nomad Visa
  • Apply from Inside Spain
20/11/2026

Spain digital nomad visa: consulate or apply in Spain?

Two ways to Spain’s digital nomad status: a 1-year visa from your consulate or a 3-year permit from inside Spain. What each gives you, and which fits you.

BrendaContent and Social Media Manager
Join a community of 10,000+ expats
Get the weekly tips, success stories, and step-by-step guides we share with our members to make their move a success.
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
I love AnchorLess! They have been fantastic for my move to Portugal with the NIF, checking account, lawyer and tax consultation. I will be happy with when this process is over, but at least the journey has been smoother with them.
LD
Lisa D
From South Africa
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
Guilherme was the best! I had so many questions and moving parts and he was responsive, always professional, and went above and beyond to help me with everything! He is a PRO!!!!
DS
Debra Savage
From The United States
Our experts on the blog
Meet our diverse team of professionals.
Brenda.L
Content manager & expat in Portugal
Brenda knows all about the difficulties involved in obtaining a visa and shares her knowledge in our articles.
Lara.C
Spain Operations Coordinator

After years of living as an expat in over five countries and traveling extensively, Lara knows exactly what it feels like to start fresh in a new place.

Beach Portugal

Start your new life in Europe

Turn relocation stress into success with AnchorLess.

Relocating to Europe made simple.