Expat Admin Guide

Spanish Digital Certificate: How to Get One and Why Every Expat Needs It

The certificado digital is your key to dealing with Spanish bureaucracy from your desk. Without it, routine tasks — renewing your TIE, filing tax returns, booking government appointments — become painfully slow. Here's exactly how to get one.

Updated April 2026
• 12 min read
• 10 FAQs covered
Not sure which visa you need first? Sort your visa before tackling the digital certificate — we can help.
Check Eligibility Book a Consultation

What Is a Spanish Digital Certificate?

A certificado digital (digital certificate) is an electronic file that proves your identity when you interact with Spanish government websites. Technically it is a public key certificate — a small file containing your encrypted identity credentials, issued by a trusted authority and installed in your web browser.

In Spain, the main issuing authority is the FNMT-RCM (Fabrica Nacional de Moneda y Timbre — Real Casa de la Moneda), the state-owned mint and certificate authority. Its certificates are accepted by every Spanish public administration: the Agencia Tributaria (AEAT), Social Security (TGSS), DGT (traffic), immigration (Policia Nacional), and hundreds of regional and local bodies.

Once installed, the certificate lives in your browser. When a government website asks you to identify yourself, your browser uses the certificate to confirm who you are — without any password required. You can also use it to sign documents electronically with full legal validity in Spain.

This is not a small convenience — it is a fundamental tool for living legally in Spain. Without it, even straightforward tasks become ordeals. With it, you have a direct line into the Spanish state's electronic systems, available at any hour, from anywhere with an internet connection.

Key point: The digital certificate is not the same as Cl@ve. Cl@ve is a login system (username plus password or SMS code). The digital certificate provides a higher level of legal assurance and is required for certain actions that Cl@ve cannot perform.

Why Every Expat Needs One

If you live in Spain — whether on a Non-Lucrative Visa, Digital Nomad Visa, or any other residency — you will eventually need to deal with Spanish bureaucracy. The digital certificate makes all of the following possible without leaving your home:

  • Booking and managing immigration appointments (TIE renewal, residency applications) via SEDE Electronica
  • Filing your annual income tax return (declaracion de la renta) on the AEAT website
  • Accessing your Seguridad Social record and requesting official documents
  • Submitting Modelo 030 (census notification) and other administrative forms
  • Checking and paying fines from the DGT (traffic authority)
  • Requesting official certificates such as empadronamiento certificates from some councils
  • Communicating formally with Spanish public administration with full legal validity
  • Registering as self-employed (autonomo) and managing tax obligations
  • Accessing your digital health record in the public health system
  • Managing property-related registrations and official notifications

The Legal Framework

Digital certificates in Spain are governed by Regulation (EU) No 910/2014 (eIDAS), which establishes a framework for electronic identification and trust services across the EU. The FNMT certificate qualifies as an advanced electronic signature under this regulation, giving it strong legal standing not just in Spain but across all EU member states.

Three Ways to Get a Spanish Digital Certificate

There are three main routes to obtaining a valid digital identity in Spain. The right one depends on your situation — whether you are already in Spain, whether you have a DNI or TIE, and your technical comfort level.

Cl@ve Permanente

Spain's government identity platform. Register online with your NIE, verify via a letter to your padron address or in person. Provides access to many but not all services.

Medium difficulty

DNIe (Electronic ID Card)

If you hold a Spanish DNI (national identity card), you can use the chip with a card reader for the highest security level. This option is only available to Spanish citizens.

Spanish citizens only

Our recommendation: Get both the FNMT certificate AND Cl@ve Permanente. They complement each other — some portals prefer one, some prefer the other. Both are free and the combined setup takes less than a day.

Getting Your FNMT Digital Certificate: A Complete Walkthrough

This is the most commonly used method for expats and foreign residents in Spain. Allow one to two days to complete the full process — most of it is waiting for email confirmation and then a short office visit.

  1. Prepare your browser

    You must use the same browser throughout the entire process — from the initial request to the final download. Use Firefox or Chrome. Disable VPNs and browser extensions, particularly ad-blockers and privacy tools, before starting. Do not switch browsers or computers at any point.

  2. Request your certificate on the FNMT website

    Go to www.sede.fnmt.gob.es, then navigate to Certificados, then Persona Fisica, then Obtener Certificado Software, then Solicitar Certificado. Enter your NIE number, first surname (primer apellido), and email address. The FNMT will send you a request code (codigo de solicitud) by email within minutes. Save this code — you will need it later and it cannot be recovered if lost.

  3. Visit an accreditation office in person

    You must verify your identity in person at an authorised office. The most convenient options are any AEAT (Agencia Tributaria) office, any Social Security (TGSS) office, or certain post offices (Correos) in the Cl@ve network. Bring your NIE or TIE card plus your passport, and have your request code available on your phone or printed. No appointment is needed at most AEAT offices — queue at the Atencion al Ciudadano or Tramites Varios desk.

  4. Complete the identity verification

    Show your identity document to the official and provide your request code. They will look you up in the FNMT accreditation system and verify your identity. This takes approximately five to ten minutes. You do not receive the certificate at the office — verification simply activates your request code.

  5. Download and install the certificate

    Return to the FNMT website on the same browser and computer you used to generate the request. Go to Persona Fisica, then Descargar Certificado. Enter your NIE and request code. The certificate will be generated and installed into your browser's certificate store. On some browsers it downloads as a .p12 file that you then import.

  6. Export and back up the certificate

    In your browser settings, find the certificate manager and export your certificate as a .p12 or .pfx file protected with a strong password. Store this backup securely in at least two locations — cloud storage and a USB drive, for example. This backup allows you to reinstall the certificate if you change computers or browsers.

  7. Install AutoFirma

    Download AutoFirma from the Spanish government's administracion electronica website. This free application is required by many government portals to sign electronic documents and forms using your certificate. Install it and it will automatically detect your certificate.

  8. Test your certificate

    Go to sede.agenciatributaria.gob.es and attempt to log in using your digital certificate. If it works and displays your name and NIE, you are fully set up. If not, consult the troubleshooting section below before contacting the FNMT helpline.

Documents Required for the Accreditation Appointment

The accreditation step is simple and takes only a few minutes. Have these items ready:

  • Valid NIE certificate or TIE card (Tarjeta de Identidad de Extranjero)
  • Passport — bring it alongside your NIE or TIE; some offices will ask for both
  • Your FNMT request code (codigo de solicitud) — printed or clearly visible on your phone
  • The email address you used during the online application, for reference if needed

EU citizens: If you hold an EU identity card and a residency certificate (certificado de registro de ciudadano de la UE), you can use these in place of a TIE. Your NIE is printed on the residency certificate.

Accreditation Location Appointment Needed? Notes
AEAT (Tax Office) No — walk in Usually fastest; most towns have one; queue at general enquiries
Social Security (TGSS) Sometimes required May need to book online; varies by office; check their website
Correos (Post Office — Cl@ve network) No Only specific branches participate; use Cl@ve's office finder to check
Town Hall (Ayuntamiento) Varies Some municipalities offer this service; confirm before visiting

Getting Cl@ve Permanente: Spain's Other Digital Identity System

Cl@ve (Clave Permanente or Clave PIN) is Spain's government identity platform, separate from but complementary to the FNMT certificate. It is worth registering for both, as they serve slightly different purposes.

What Cl@ve Gives You

Cl@ve lets you access most government portals using your NIE and either a permanent password or a one-time PIN sent to your phone or generated by the Cl@ve app. It is more convenient for day-to-day use on mobile devices, but has a lower legal assurance level than the full FNMT certificate — meaning it cannot be used to sign legally binding documents.

How to Register for Cl@ve

  1. Register online at clave.gob.es

    Go to clave.gob.es and register with your NIE and email address. You will receive an online confirmation that registration has started.

  2. Verify your identity

    Either receive an activation letter at your padron address (takes two to three weeks), or verify in person at a Cl@ve-registered office such as a post office, AEAT, or Social Security. In-person verification is significantly faster.

  3. Set up Cl@ve PIN or Permanente

    Cl@ve PIN uses one-time codes via SMS or the Cl@ve app. Cl@ve Permanente is a fixed password. Both are useful — set up both once registered.

Feature FNMT Certificate Cl@ve
CostFreeFree
Mobile-friendlyLimited — desktop bestYes — app available
Legal document signingYes — full legal signatureNo
Validity period4 years (renewable)Indefinite while account active
Tax filing (AEAT)Yes — all actionsYes — most actions
TIE renewal bookingYesYes
Social Security accessYesYes

Renewing Your Digital Certificate

FNMT certificates for individuals are valid for four years from the date of issue. Renewal is straightforward if you act before the certificate expires.

Renewing Online (Before Expiry)

If your certificate is still valid and within 60 days of its expiry date, you can renew entirely online with no office visit required. Log in to the FNMT website using your current certificate, navigate to Renovar Certificado, and follow the process. The new certificate is issued immediately and replaces the old one.

Renewing After Expiry

If your certificate has already expired, you must repeat the full process from scratch — including the in-person accreditation step. There is no grace period. This is why setting a calendar reminder 60 days before your expiry date is strongly recommended.

Tip: When you first install your certificate, check its expiry date immediately (visible in your browser's certificate manager under Settings or Preferences). Set a reminder 60 days before that date. Four years passes faster than you expect.

Common Problems and How to Fix Them

  • !
    Wrong browser used for download

    The certificate must be generated and downloaded in the exact same browser on the same computer. If you started in Firefox, finish in Firefox. Switching browsers or computers invalidates the request code and you must start again.

  • !
    VPN or privacy extension interfering

    VPNs, ad-blockers, and privacy extensions such as Privacy Badger or uBlock can interfere with the FNMT's certificate generation process. Disable all extensions and turn off your VPN before starting and during the download step.

  • !
    Certificate not appearing in SEDE Electronica

    After installation, restart your browser. Ensure the FNMT root certificate is trusted — download and install it from the FNMT website under Descarga e Instalacion. AutoFirma may need to be installed for portal compatibility to work properly.

  • !
    NIE format error on the FNMT form

    Enter your NIE without spaces or hyphens in the format letter plus seven digits plus letter, for example X1234567A. Make sure you are copying the format exactly as shown on your NIE document or TIE card.

  • !
    Certificate works on desktop but not on mobile

    Most government portals do not support certificate authentication on iOS or Android browsers. For mobile access, use the Cl@ve PIN app instead. Reserve certificate authentication for desktop or laptop browsers.

  • !
    Office says they cannot process the accreditation

    Not all offices have access to the FNMT accreditation system. If one office cannot help, try a different AEAT office or a Social Security office. Call ahead to confirm they process FNMT accreditations before making the trip.

Related Guides for Expats in Spain

Frequently Asked Questions About the Spanish Digital Certificate

What is a Spanish digital certificate (certificado digital)?
A Spanish digital certificate is an electronic credential issued by the FNMT (Fabrica Nacional de Moneda y Timbre) that verifies your identity online. It allows you to interact securely with Spanish government agencies — including AEAT (tax office), Social Security, DGT (traffic authority), and immigration services — without needing to visit in person. It also lets you sign documents electronically with full legal validity under EU eIDAS regulations.
Do I need my NIE before I can get a digital certificate?
Yes. You must have a valid NIE (Numero de Identificacion de Extranjero) before you can apply for an FNMT digital certificate. The NIE is the identifier that links the certificate to your identity in Spanish government systems. Getting your NIE is therefore the essential first step for any expat arriving in Spain — see our NIE guide for the complete process.
Which method for getting a digital certificate is easiest for expats?
For most expats already living in Spain, the FNMT software certificate method is most practical. Apply online in about five minutes, then verify your identity at a local AEAT tax office — which usually requires no appointment. After the brief in-person step, you download and install the certificate the same day. Cl@ve Permanente is a useful complementary option once registered. We recommend setting up both, as different government portals have preferences.
Can I get a Spanish digital certificate without going to Spain?
No. All three main methods require an in-person identity verification step at some point during the process. The FNMT method requires accreditation at a Spanish government office. Cl@ve requires either a physical letter delivered to your padron address in Spain, or in-person verification. The DNIe method requires you to have the physical card in your possession. There is currently no fully remote option available for non-residents who have not been in Spain at all.
Does the Spanish digital certificate expire?
Yes. FNMT certificates for private individuals expire after 4 years from the date of issue. The good news is that you can renew entirely online within the 60 days before expiry, with no office visit required — provided you act before the certificate actually expires. If you let it expire, you must repeat the full process including the in-person accreditation step. Set a calendar reminder well in advance of the expiry date.
Can I use my Spanish digital certificate on a Mac or iPhone?
On a Mac, the certificate works well in both Safari (install via Keychain Access) and Chrome (import into Chrome's certificate settings). On iPhone and iPad, direct certificate authentication is not supported by most Spanish government portals in mobile browsers. For mobile access to government services, the Cl@ve PIN app is generally more convenient and reliable. We recommend using the digital certificate on a Mac or Windows laptop and Cl@ve for mobile.
What should I do if the digital certificate installation fails?
Work through these steps in order: (1) confirm you are using the exact same browser that generated the original request; (2) disable all VPNs, ad-blockers, and browser extensions; (3) install AutoFirma from the FNMT website, which handles certificate management for government portals; (4) download and install the FNMT root certificates from the FNMT website under Descarga e Instalacion; (5) if the certificate appears to download but is not visible in your browser, import the .p12 file manually via your browser certificate manager. If none of these work, contact the FNMT helpline.
What is the difference between Cl@ve and the digital certificate?
Cl@ve is a login and authentication system that uses your NIE plus a PIN or one-time password (sent via SMS or generated by the Cl@ve app) — conceptually similar to two-factor authentication. The digital certificate is a cryptographic file installed in your browser that provides a higher level of legal assurance. The key difference is that the digital certificate can be used to sign documents with full legal validity, which Cl@ve cannot. For accessing government information and filing standard forms, both work. For signing contracts, powers of attorney, or formal applications, only the certificate suffices.
Do I need a digital certificate to renew my TIE?
You are not legally required to have a digital certificate to renew your TIE (Tarjeta de Identidad de Extranjero). However, having one makes the process significantly more straightforward. With a certificate, you can book your renewal appointment online via SEDE Electronica, submit supporting documents electronically, pay any associated fees online, and track your application status. Without one, you are reliant on the telephone appointment booking system (which is notoriously congested) or must use a gestor or immigration lawyer to manage the process for you.
Does getting a Spanish digital certificate cost anything?
The FNMT digital certificate for private individuals (Certificado de Persona Fisica) is completely free of charge. There are no fees to apply, to have your identity verified, to download and install the certificate, or to renew it. The Spanish government issues it as a free public service. The only potential cost you might incur is if you choose to engage a gestor or immigration adviser to guide you through the process, but the certificate itself costs nothing.