Digital certificate in Spain: how to get the certificado digital with an NIE

In Spain, a digital certificate, the certificado digital, serves as your electronic signature. It is issued by the FNMT, the Spanish Royal Mint. With an NIE you can’t avoid an office visit. You make the request on a computer or in the FNMT app, then take the code from your email to an office. Afterwards you download the certificate onto the device you made the request on. The certificate is free.

Published 10 November 2026Reviewed by: Iuliia MedynskaiaOnline only

The SunClub Business directory mentioned in this article is a project of our editorial team.

The Fábrica Nacional de Moneda y Timbre building in Madrid: the state mint that issues digital certificates. Photo: Carlos Delgado, Wikimedia Commons, CC BY-SA 4.0 (cropped)
The Fábrica Nacional de Moneda y Timbre building in Madrid: the state mint that issues digital certificates. Photo: Carlos Delgado, Wikimedia Commons, CC BY-SA 4.0 (cropped)

If you are registered as autónomo (self-employed) in Spain, you must receive Seguridad Social notifications electronically. This has been the rule since October 2018. If you don’t open one within 10 calendar days, it counts as rejected and the case goes ahead without you. These notifications arrive in an online mailbox, and you can get into it with a digital certificate, a DNIe (the Spanish electronic ID card) or Cl@ve Permanente with advanced-level registration (Cl@ve is a government login system, more on it below). The certificate will also come in handy on plenty of other government websites.

We checked this guide on 5 November 2026 against the websites of the FNMT, the tax office, Seguridad Social and clave.gob.es. Button and field names are left in Spanish, as you will see them on screen.

In this article

At a glance

  • What it is: a file on your computer or phone. You use it to log in to government websites and to sign documents.
  • Who issues it: the Fábrica Nacional de Moneda y Timbre (FNMT), the Spanish Royal Mint.
  • Cost: free.
  • With an NIE: only with an office visit. Video identification works only with a Spanish DNI for now.
  • What to take to the office: the code from the email, your NIE card (or another document showing your NIE) and a valid passport or, for EU citizens, a national ID card.
  • Validity: the expiry date is shown in the certificate itself, and you can renew it in the last 60 days before it expires.

What a digital certificate is and what you can do with it

You may also hear it called an electronic or digital signature. In Spanish it is the certificado digital or certificado electrónico. The FNMT calls the one you need the Certificado de Ciudadano (citizen certificate). Don’t let the name put you off: Spaniards and foreigners with an NIE can both get one, as long as they are 18 or over.

Where you can use it:

  • The tax office (Agencia Tributaria): tax returns, certificates and notifications. For example, it lets you order a certificate of the seller’s tax debts when you buy a business.
  • Seguridad Social: every online service for autónomos, notifications included.
  • The traffic authority, DGT: your driving record (informe de conductor) and the miDGT app.
  • Town halls: Valencia accepts recognised certificates, such as the FNMT one. The FNMT also lists the padrón, the local register of residents, among the certificate’s uses. You can use it to view your entry or to register.
  • DEHú: a single mailbox for notifications from government bodies. You don’t need to register for it separately.

If you are registering as autónomo, it pays to get the certificate first, because with it you can do the registration online. The tax office works differently from Seguridad Social: an ordinary autónomo is not on its list of those who must receive notifications electronically. That list includes companies, members of professional bodies such as lawyers, and anyone signed up to the monthly IVA (Spanish VAT) refund register, REDEME.

Digital certificate with an NIE: which documents you need

The FNMT offers four ways to get the certificate (video identification, the mobile app, a DNIe or an office visit). With an NIE, every route ends at an office. Video identification is for DNI holders only, and the DNIe route is also designed for Spaniards. You can start the request on a computer or in the Certificado Digital FNMT app for Android and iOS, but either way you prove your identity at an office. The FNMT says video identification will accept other documents later, but has given no date yet.

Your situationWhat to show at the office
Non-EU, with a TIE (foreigner’s identity card) showing your NIEThe code from the email, the card and your passport
Non-EU, never had a cardThe code, the official document giving you your NIE, and your passport
EU citizenThe code, the green EU registration certificate with your NIE or another document with that number, and your passport or national ID card

Bring originals or officially certified copies. The FNMT accepts an expired NIE card, but your passport must be valid. A travel document will do instead of a passport.

The FNMT has no separate rules for people with temporary protection (protección temporal, the EU status given to people displaced from Ukraine), so the general rule applies: an NIE card plus a valid passport or travel document. If your passport has expired, ask the office when you book, or email ceres@fnmt.es.

How to get a digital certificate in Spain: four steps

The steps below are for the computer route. Follow them in exactly this order. Do the whole thing on one computer and under one user account: the request creates a private key there, and without it you can’t download the certificate later.

The four steps on the FNMT website: Configuración Previa, Solicitar Certificado, Acreditar Identidad, Descargar Certificado
The four steps on the FNMT website and the password warning. Screenshot of sede.fnmt.gob.es, 5 November 2026.

Step 1. Install the program

On the FNMT download page, get the Configurador FNMT-RCM for your system: Windows, macOS or Linux. Install it with administrator rights. On a Mac the system may also ask you to install Rosetta. If it does, say yes. Your browser needs to be the latest version of Firefox, Chrome, Edge, Opera or Safari. Don’t reformat the computer until you have downloaded the certificate.

Step 2. Request your code online

Open Solicitar Certificado (request a certificate) and fill in the form:

  • Nº del documento de identificación: your NIE, exactly 9 characters. If yours has fewer, the form asks you to add zeros at the beginning.
  • Primer apellido: your first (or only) surname, exactly as it appears on your document.
  • Correo electrónico and Confirma tu correo electrónico: your email address. The code and every email about the certificate will go there.
  • Tick He leído y acepto (I have read and accept) and click Enviar petición (send request).
The certificate request form on the FNMT website: document number, first surname, email and the Enviar petición button
The request form. Screenshot of sede.fnmt.gob.es, 5 November 2026.

The program will ask you to create a new password. Its window sometimes opens behind the others, so if nothing seems to happen, look for it and don’t click the buttons again. Write the password down: you will need it for the download, and it can’t be recovered. If you forget it, you have to start again.

A Código de Solicitud (request code) will arrive by email. We couldn’t find out from the FNMT website how long this code stays valid, so book your office appointment straight away. If you made more than one request, take the latest code to the office.

Step 3. Prove your identity at an office

Find an office near you with the FNMT office locator: you choose the type of certificate and your location. There are more than 2,400 offices, including tax offices, Seguridad Social offices and those of other public bodies. The tax office, Seguridad Social and a number of other offices work by appointment (cita previa), so check with the office itself how to book. You can’t get the certificate done at Correos, the Spanish post office.

You must go in person, with the code and the documents from the table above. Someone else can go for you only if your signature on the certificate application contract has been notarised.

Step 4. Download the certificate and make a backup

One FNMT page says the certificate will be ready about an hour after your office visit, and another says it is ready straight away. Open Descargar Certificado (download the certificate) on the same computer, under the same user account and in the same browser. Enter your NIE, first surname and code exactly as in the request, then the password from step 2.

Make a backup copy immediately, as the FNMT itself recommends. You will get a .pfx or .p12 file protected by your password from step 2. You can use it to install the certificate on another computer, an Android phone or an iPhone. Don’t hand the file or its password to anyone else: with them, a person can act in your name on government websites. And only ever use sede.fnmt.gob.es, because the FNMT warns about lookalike sites.

How long the certificate lasts and how to renew it

Older guides say four years, but that is no longer always true. The FNMT now issues two kinds of certificate. RSA certificates issued up to the end of 2026 are valid until 31 December 2028 at the latest. The new G2 certificates are valid for no more than four years. The FNMT doesn’t say in advance which one you will get, so check the date in the certificate itself.

You can renew it (renovar) in the last 60 days, as long as it has not been revoked. You do this online: you log in with your valid certificate in the browser, get a code by email and download the new certificate about an hour later. Online renewal is allowed only once, and only if no more than five years have passed since your office visit. An expired certificate can’t be renewed, so you would have to go through all four steps again. Set a calendar reminder for two months before the expiry date.

What to do if your digital certificate won’t download

First, check that you are on the same computer and in the same browser you used to request the code. Then work through the table below. The advice comes from the FNMT’s own help pages.

What you seeWhat to do
No se ha encontrado la clave privada (private key not found)Go back to the computer, browser and profile you used for the request, and check your password. Don’t uninstall the program.
El código de solicitud y el NIF no están asociados (request code and NIF not linked)The code is old or belongs to someone else (the NIF here is your NIE). Enter the one you got by email and gave at the office.
No existe solicitud de Certificado (no certificate request exists)The code was issued for a different number. You need a new request and another office visit.
No se ha encontrado el número de petición (request number not found)The office hasn’t finished checking your identity yet. Email ceres@fnmt.es with the subject NO GENERADO and give your NIE, surname, code, the date of your visit and the office you went to.
Caducado o aún no válido (expired or not yet valid)Check the date and time on your device first.
The program won’t startReinstall it with admin rights, add it to the trusted list in your antivirus and turn off tracking blockers in the browser.
Forgotten passwordIt can’t be recovered. Start again with a new request.

If none of this helps, email ceres@fnmt.es with the certificate details, your system, your browser and a screenshot of the error.

How the certificado digital differs from Cl@ve

Cl@ve is a separate way of logging in, and it works alongside the certificate. There is no file: you register once and then log in with your phone. With Cl@ve Móvil you confirm the login in an app, and the fallback is a PIN by SMS. On 3 March 2025 Seguridad Social switched from Cl@ve PIN to Cl@ve Móvil, though the old name still turns up on other websites. There is also Cl@ve Permanente: your NIE as the username and a password of your own.

There are three ways to register with an NIE:

  • With an invitation letter sent by post, containing a verification code (CSV). It goes to your tax address (domicilio fiscal) and gives you only the basic level, which not every service accepts.
  • In person at an office: NIE, passport, phone number (a foreign one is fine) and email. This gets you the advanced level.
  • Online, with a certificate you already have. Also the advanced level.

Video registration in the Cl@ve app is still only for Spaniards with a DNI. We would start with the certificate: one office visit, and then you can use it to set up Cl@ve without a second trip.

The certificate for autónomos and for an SL

As an autónomo you use your personal certificate, because the FNMT does not issue representative certificates for individuals. The FNMT also recommends the same personal certificate to autónomos who issue their own invoices through the VERI*FACTU system.

If you run a limited company (SL), you need a different certificate. A sole director or a joint and several director (administrador único or solidario) needs the Certificado de Representante de Administrador Único o Solidario: €24 before tax, €29.04 with IVA. You can only apply for it online, using your personal certificate or a DNIe. So someone with an NIE still needs the personal one first. Other company representatives, such as joint directors, use the Persona Jurídica certificate: €14 before tax, €16.94 with IVA. Someone acting under a power of attorney can only get it if the power of attorney has a specific clause about this certificate. Both are valid for two years.

For questions beyond the certificate, such as your residence status, your documents or a dispute with a public body, ask a lawyer who speaks your language. The SunClub Business directory lists Lapchynskyi Partners: lawyers across Spain who handle residence permits, tax and accounting.

Frequently asked questions

What is an electronic signature called in Spain?

Certificado digital or certificado electrónico. For private individuals, the FNMT issues it under the name Certificado de Ciudadano.

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

Not as of 5 November 2026. Video identification is only available with a DNI, and an app request made with an NIE still ends with an in-person check.

How much does a digital certificate cost in Spain?

The personal certificate is free. Video identification costs €2.99 plus tax, but that option is not yet open to NIE holders.

How do I install my digital certificate on another computer or phone?

Use the .pfx or .p12 backup: import the file into your browser, or open it on your phone and enter the password. You can also make the backup later by exporting the certificate from your browser.

Can I have the certificate on more than one device?

Yes, you can install the backup on a computer and a phone. Each person can only hold one valid certificate at a time, though. Any new one, whether you request it on a computer or in the app, revokes the previous one straight away. The only exception is renewal, in which case the old certificate keeps working until it expires.

Do autónomos need a digital certificate?

Not necessarily. The law requires autónomos to receive Seguridad Social notifications electronically, and you choose how to log in: a certificate, a DNIe or Cl@ve Permanente with advanced-level registration. You can also have an authorised representative deal with them for you.

What should I do if my certificate has expired?

Go through all four steps again, office visit included. If the website says your certificate has expired but the expiry date hasn’t passed yet, check the date and time on your device.

This version of the article was translated from Russian with the help of AI.

SunClub Business directory

Legal services

Professional legal services in Spain. Arranging and renewing all types of residence permits

Languages
Russian, Ukrainian, Spanish, English
Contacts and prices in the directory →

SunClub Business is the directory run by SunClub Network magazine: 240 businesses and professionals in Spain. The editors review every business page before it goes live. Browse the directory →

More on this