Living in Spain Police and paperwork

Digital Certificate in Spain: What It Is and How to Get One

The digital certificate in Spain (certificado digital) is a small file, installed in your web browser, that proves who you are to Spanish public bodies online: the tax office, Social Security, the traffic authority (DGT), your town hall and many more. For individuals it is the Certificado de Persona Física issued by the Fábrica Nacional de Moneda y Timbre (FNMT-RCM). It is free, it lasts four years from the day it is issued, and anyone over 18 with a DNI or an NIE can have one. If you are a foreign resident with an NIE, there is one way to get it: request it online at sede.fnmt.gob.es, prove your identity in person at a registration office (tax office, Social Security office or many town halls, usually by appointment), then download it on the same computer about an hour later. The FNMT’s two home routes, video identification and the electronic DNI chip, are only open to holders of a Spanish DNI.

Person using laptop with cyber security displayed on screen

Whether you are applying for residency, self-employed and managing your taxes, or simply tired of queuing at public offices, the certificate will save you hours. Below we explain what it is, the three ways the FNMT issues it, what you need, each step of the office route, how to renew it, how to put it on a phone, and when the simpler Cl@ve login is enough instead.

What is a Digital Certificate?

The digital certificate, or certificado digital, is an encrypted electronic identity that proves who you are online. It is issued by Spain’s Royal Mint, the Fábrica Nacional de Moneda y Timbre (FNMT-RCM), and lets you log in to Spanish public services and sign documents electronically with full legal validity. The tax office, Social Security and the other bodies you deal with do not issue it themselves: they only check your identity for the FNMT.

The certificate is stored in your web browser and can be exported to other devices, including your phone. It is valid for four years from the day it is issued; the exact expiry date is written inside the certificate, and you can see it in your browser’s certificate settings. You can only hold one personal certificate at a time: if you apply for a new one, the old one is cancelled. It is used by Spanish citizens and foreign residents alike, and for individuals it is free of charge.

Why You Might Need a Digital Certificate

Many Spanish government and local authority websites require a digital certificate for identification. Here are some of the most common uses:

Put simply, if you plan to live in Spain and handle your own admin, it’s a smart and often essential tool.

The three ways to get a digital certificate

The FNMT issues the personal certificate in three ways. Only the first is open to a foreign resident with an NIE.

  1. Online request, then an office visit. You request the certificate on the FNMT website, go in person to a registration office with your identity document and a request code, then download the certificate on the same computer about an hour later. This is the route for everyone who holds an NIE, and it is the one explained step by step below.
  2. Video identification from home. You scan a QR code with your phone and record a short video with your identity document. The FNMT reviews it within about 48 working hours and charges 2.99 euros plus tax for the review; the certificate itself is still free. The FNMT states that this service is only available to holders of a valid Spanish DNI, so NIE holders cannot use it for now.
  3. With a Spanish electronic DNI (DNIe) and a reader, or an Android phone with NFC using the Firefox browser. The chip on the DNIe proves your identity, so there is no office visit. This route is only offered for the Spanish DNIe; there is no equivalent for the TIE card.

The FNMT also offers the same certificate through its own mobile app, but identity is proved the same way: video identification (DNI only), a DNIe, or a visit to a registration office. The browser route below remains the simplest for most expats.

What you need before you start

  • Your NIE (or DNI). If you do not have one yet, read our guide on how to get your NIE number first; the certificate cannot be issued without it.
  • Your passport and the document that shows your NIE: your TIE card, your EU citizen registration certificate (the green certificate), or the official letter granting your NIE or NIF.
  • A computer (Windows, macOS or Linux) that you will still have access to a few days later. The request and the download must be made on the same computer and the same user account.
  • An email address you can read, and a password you will choose during the request. Write it down: the FNMT cannot recover it, and if you forget it you start again.
  • About an hour for the appointment at the registration office.

How to get the digital certificate step by step

Step 1: Download the FNMT Software

To begin the process, you’ll first need to install a small application from the FNMT website. This software generates a pair of secure encryption keys tied to your device.

Go to: FNMT: Configuración previa (Configurador FNMT-RCM)

The program is called the Configurador FNMT-RCM. Choose the version for your operating system (Windows 64 bit, macOS, or Linux in DEB or RPM format), download it and install it. On a Mac with an Apple chip the installer may ask to add Rosetta; allow it. The FNMT supports the latest version of Firefox, Chrome, Edge, Opera or Safari, so use whichever you normally use, and keep using that same computer and user account until the certificate is installed. Do not reinstall or reset the computer in between. If an antivirus program or a company proxy blocks the Configurador, allow it through.

Step 2: Fill Out the Application Form Online

Once the software is installed, head to the following page to request your certificate:

FNMT: Solicitar certificado

Fill out the short form with your personal details:

  • NIE Number
  • Surname (as per your ID document)
  • Email address (entered twice to confirm)

You will also be asked to set a password. You need it again when you download the certificate, and the FNMT cannot recover it if you forget it: you would have to start the request again. Accept the terms and conditions, then click “Enviar Petición”. The Configurador you installed in step 1 opens, generates your keys and encrypts the request.

Step 3: Receive Your Application Code by Email

You will receive an email almost immediately containing your Código de Solicitud, the request code. Keep it safe: you need it at the registration office and again to download the certificate. If you book your office appointment first and send the request the day before, you lose no time.

Proof of cover for your residency

You will be asked to show private health cover before your registration goes through. Qualifying plans from €61,40 a month.

  • No co-payments
  • Accepted for visa and residency
Get a price

Step 4: Verify Your Identity in Person

Although the certificate is issued online, your identity must be checked in person before the FNMT will release it. The FNMT has more than 2,400 registration offices (Oficinas de Acreditación de Identidad) across Spain, run by other public bodies on its behalf:

  • Any office of the Agencia Tributaria (the tax office): appointment required, booked on the tax office website under cita previa
  • Social Security offices (Seguridad Social): appointment required
  • Many town halls and regional government offices, which are often the quickest option; most need an appointment, so check with the office first
  • Spanish consulates, if you are abroad

Post offices (Correos) do not handle the personal certificate. Find your nearest office on the FNMT map: Localizador de Oficinas. Enter your address and a distance in kilometres, and pick an office marked for personas físicas.

Take your request code and your original documents. The FNMT list for foreign residents is: your TIE card showing your NIE plus your passport; or, for EU citizens, your EU registration certificate showing your NIE plus your passport or national identity card; or the official document granting your NIE or NIF plus your passport. You must go yourself: nobody can do this for you unless your signature on the FNMT contract has first been notarised. The clerk checks your documents, you sign, and the FNMT is told that your identity is confirmed.

Step 5: Download and Install the Certificate

About an hour after your visit to the office you can download the certificate from the FNMT download page: FNMT: Descargar certificado. Use the same computer and the same user account as for the request, otherwise the download fails.

Enter your NIE, your first surname and the request code exactly as you typed them in the request, then the password you set in step 2. Accept the conditions of use and the certificate is installed in your browser’s certificate store; the FNMT also offers to save a backup copy at this point, which we recommend. From now on, when a Spanish public website asks you to identify yourself with a certificado digital, your browser offers the certificate and you click to confirm.

Step 6: Export the certificate and put it on your phone

The certificate lives in one browser on one computer until you export it. Make a backup straight away and you can install it on a second computer, a tablet or your phone:

  • Go to your browser’s certificate settings
  • Locate your certificate under “Personal” or “Your certificates” (on a Mac it is in the Keychain)
  • Export it with the private key; the file ends in .pfx or .p12
  • Set a password for the file and keep it somewhere safe: nobody, not even the FNMT, can recover it
  • Import the file on the other device. On an Android phone, copy the .p12 file to the phone, tap it and enter the password; on an iPhone, email it to yourself or save it in iCloud, tap the file and follow the installer

Once installed on your phone you can use the certificate in the phone’s browser. Treat the .p12 file like a signed blank cheque: never send it to anyone who asks for it, and never upload it to a website.

Renewing your digital certificate

The certificate expires four years after it was issued. In the 60 days before the expiry date you can renew it online without visiting an office: go to the FNMT renewal page, FNMT: Renovar certificado, identify yourself with the certificate you still have, receive a new request code by email and download the renewed certificate about an hour later on the same computer. Once the certificate has expired it cannot be renewed, so set a reminder. The FNMT only allows one online renewal, and only when the certificate you are renewing was obtained with a visit to a registration office. After that, or if yours was obtained by video identification or with a DNIe, you apply for a new certificate and prove your identity in person again. In practice that means an office visit every eight years at most.

Digital certificate or Cl@ve?

Cl@ve is Spain’s other official login: a registration linked to your mobile phone, with a code in the Cl@ve app or by SMS, or a permanent password. It is enough for most everyday jobs, such as checking your tax position, filing your income tax return, paying a traffic fine or downloading your work history. The digital certificate works on more sites, signs documents, works for a company you represent and does not depend on your phone. If you already have a certificate, you can register for Cl@ve online straight away, with no letter and no office visit. Our Cl@ve guide explains the registration routes for NIE holders.

Self-employed and company certificates

If you are autónomo you use the same personal certificate for your tax and Social Security filings. A company (SL or SA) needs a separate Certificado de Representante: for a sole or joint administrator it costs 24 euros plus tax, lasts two years and is requested online with your personal certificate or DNIe, with no office visit.

If your certificate is lost or stolen

Never share your certificate file or its password. If you think someone else has a copy, cancel it at once on the FNMT page FNMT: Anular certificado: online with the certificate itself if you still have it, by the FNMT’s 24 hour telephone service if you know your request code, or in person at a registration office. Then apply for a new one.

Quick tips

  • Book first: get the office appointment, then send the online request the day before, so your request code is ready.
  • Same computer: request and download on the same computer and user account; do not reset or reinstall it in between.
  • Back it up: export the .p12 file with its password the day you download the certificate, then install it on your phone.
  • Check it works: the FNMT has a “Verificar estado” page that confirms the certificate is installed and valid.

Conclusion

Getting a digital certificate in Spain takes one office visit and an hour of your time, but once you have it you will save days of queuing. Whether you are renewing your residency, filing your taxes or checking your Social Security record, this one free key opens almost every Spanish public service online.

Questions people ask about the digital certificate in Spain

What is a digital certificate in Spain?

It is an electronic identity file, the Certificado de Persona Física, issued by the FNMT-RCM and installed in your browser. Spanish public bodies read it to confirm who you are, and you can sign documents with it. It has the same legal value as signing in person.

Is the digital certificate free?

Yes. The FNMT issues and renews the personal certificate free of charge. The only paid option is the optional video identification review, 2.99 euros plus tax, which is currently only open to holders of a Spanish DNI. Company representative certificates cost 24 euros plus tax.

How long does a digital certificate last?

Four years from the day it is issued. You can renew it online once, in the 60 days before it expires, if you obtained it with an office visit. After that, or once it has expired, you apply again and prove your identity in person.

Can I get a digital certificate without going to an office?

Only if you hold a Spanish DNI: the FNMT video identification service and the electronic DNI route are for DNI holders. If you have an NIE, you request it online and then visit a registration office once with your TIE or EU registration certificate and your passport.

Do I need an NIE before I can get a digital certificate?

Yes. The certificate is tied to your DNI or NIE, and the request form will not accept anything else. Get your NIE first, then apply for the certificate.

What is the difference between the digital certificate and Cl@ve?

Both prove your identity to Spanish public bodies online. Cl@ve is a login linked to your mobile phone and covers most everyday tasks. The digital certificate is a file on your computer or phone, works on more services, signs documents and can represent a company. Many residents have both.

Can I use the digital certificate on my phone?

Yes. Export it from your browser as a .p12 file with a password, copy or email the file to your phone, open it and enter the password. It then works in the phone’s browser on the same public websites as on your computer.

Which browser should I use for the FNMT certificate?

The latest version of Firefox, Chrome, Edge, Opera or Safari all work with the Configurador FNMT-RCM. Use the same browser and the same computer for the request and the download.

Reviewed by Sean Guy, authorised Sanitas agent in Marbella. Procedures checked on sede.fnmt.gob.es on 16 November 2026.

Want peace of mind with every admin step?

If you're navigating Spanish bureaucracy regularly, it's wise to ensure you're also protected on the healthcare front. Whether for ID-linked prescriptions, appointment systems, or general cover, having private health insurance gives you faster access and more control.

Sanitas Mas Salud Family Plan: ideal for expats managing health and legal processes online in Spain.

Alternatively, please check out our Quick guide to find the right policy for you or your family.

SOURCES

More in Police, scams and official paperwork 15 guides and 1 article

See all 16

Back to top

Read next

Share this

Reviewed by Sean Guy, authorised Sanitas agent (agent code 22395) and DGSFP-registered insurance mediator (C0320X5769518Z), Marbella.

Written by the HealthPlan Spain team: English-speaking Sanitas health insurance specialists, helping expats in Spain get the right cover since 2011. Authorised and regulated by the DGSFP.

Have your cover ready first

Compare the plans that satisfy the residency requirement and get an instant price from €61,40 a month.