How to Get Your Spanish Digital Certificate as a Foreigner (Full Guide)
On this page
- 1.What the digital certificate actually is
- 2.Step one: install the FNMT software
- 3.Step two: request the certificate online
- 4.Step three: the in-person appointment
- 5.Step four: download it, on the same computer
- 6.What you can actually use it for
- 7.How long it lasts, and one honest warning
- 8.If you would rather not deal with any of this
So, you keep hearing that you need a "digital certificate" to do anything online with the Spanish administration, and nobody has explained what it actually is. Here is the short answer. The Spanish digital certificate is a small file, issued by the state mint (the FNMT), that you install on your computer and that proves online that you are you. With it, you can file your taxes, deal with immigration paperwork and request official certificates from home, without queuing at any office.
My name is Daniel Bertomeu. I am a tax advisor, and I work alongside my father Juan Bertomeu, a lawyer with offices in Moraira and Dénia and more than 30 years working with international clients. Getting digital certificates for foreign clients is something I do regularly, week after week, so what follows is not theory. It is the exact process I use myself. I also recorded the full process on camera, screen by screen, and you can watch the whole tutorial here.
What the digital certificate actually is
Well, first thing. There are several issuers of digital certificates in Spain, but the two you will hear about most as an individual are the national one, issued by the FNMT, and the regional ones, for example in the Valencian Community. The regional ones are easier to get and they cover most everyday situations. But the FNMT certificate is the complete one. It is accepted across the Spanish administration.
If you already have a regional certificate, it is uncommon that anyone asks you for the national one, although there are some procedures where you might need it. But if you are starting from zero, my advice is simple. Get the FNMT one. You do the process once and you forget about it. I am the kind of person that wants the most complete option and then moves on, and that is exactly what I recommend to clients.
One warning before we start, and this is the detail that catches most people. The computer where you request the certificate must be the same computer where you download and install it at the end. Do not start the request on your laptop and try to finish it on the office desktop. It will not work, and you would have to start again.
Step one: install the FNMT software
The process starts on the FNMT website. There is a language selector that in theory offers English, but honestly, when I press it the page comes back in Spanish anyway. Spanish bureaucracy has its own sense of humour. So do not panic if everything appears in Spanish. The steps are the same ones I describe here.
The first real step is installing a small piece of software from the FNMT, their certificate configurator. You download it, you run the installer, you click through and you are done. There is no trick in this part. Its job is to prepare your computer so the certificate can be generated and installed on that specific machine later.
Step two: request the certificate online
Now you fill in the online request form. Two things matter here, and both of them cause real problems when people get them wrong.
First, the identification number they ask for is your NIE number, not your passport number. If you do not have a NIE yet, that is the step before this one, and our NIE and residency paperwork page explains how that works for foreigners.
Second, the form asks you to create a password. Please, remember that password. You will need exactly this password again at the end of the process, when you download and install the certificate. In the video you can see me struggling to remember which one I used, so learn from my mistake and write it down somewhere safe.
When you submit the form, you receive an email with a request code. That code is what you must bring to the appointment. Do not delete that email.
Step three: the in-person appointment
Okay, Daniel, can I skip this part and do everything from home with video identification? I know some of you have read about that option. Well, the short answer is no, not with a NIE. The video identification route works with a Spanish national ID, the DNI. So if you are a foreigner, you almost certainly do not have one, and you have to verify your identity in person. There is no way around it.
The good news is that you have plenty of accreditation offices across Spain. In Dénia, for example, there are two, the Spanish Tax Agency office and the Social Security office, and either of them works. How you book depends on the office. The Tax Agency offices take appointments online through their own website, while at other offices you may end up making a phone call in Spanish. Maybe you are lucky and the person on the other side speaks English, maybe not. This is where a lot of people decide they would rather have someone do it for them.
The appointment itself is the easy part. In my case it lasted about five minutes. You show your documents, they verify you are the person from the request, and that is it. The clerk who attended me was genuinely helpful, which is not always the Spanish administration experience, so let me be fair to them here.
What do you bring? It depends on your situation. If you are an EU citizen, bring the document that shows your NIE, which is normally your green EU registration certificate, plus your passport or national ID. If you are from outside the EU and resident in Spain, bring your TIE card plus your passport. If you are a non-resident, bring your NIE document plus your passport. And in every single case, bring the request code from the email.
Step four: download it, on the same computer
After the appointment you receive another email, this time with a download link. You go back to the same computer where you made the request, you enter your NIE, your first surname and the request code, and then the password you created in step two. If everything matches, the certificate installs itself in your browser. Done.
Now, before you close everything and celebrate, there is one more step, and in my experience this is the one that almost everybody skips. Export a backup copy.
The certificate lives inside that one computer. If the laptop dies, gets stolen or simply gets replaced, the certificate goes with it and you would have to redo the entire process, appointment included. The backup is a small file, a .p12, that you export from the browser settings with its own password. With that file you can install your certificate on a new computer in about thirty seconds, and the same file works on Windows, Mac and phones. I do this export every week for clients, because it is the kind of step their previous advisor never did for them, and it takes ten or twenty minutes.
What you can actually use it for
This is the part that makes the whole process worth it. With the certificate installed, you can deal with most of the Spanish administration from your sofa, in another country if you want.
For tax, you can file your returns entirely online. If you own property in Spain as a non-resident, this is the key that lets you handle the annual Modelo 210 non-resident tax without setting foot in Spain. And if you ever become a Spanish tax resident, the foreign assets declaration, the Modelo 720, is filed with this same certificate. You can also request your tax residency certificate directly from the tax agency, which banks and foreign tax offices ask for constantly.
For immigration, you can submit documents to the immigration office when they ask for something extra, submit your residency renewal application online, though the new TIE card itself still requires an in-person fingerprint appointment, and apply online for things like the digital nomad visa. For town hall matters, most cities let you download your empadronamiento certificate online. If you rent out a property, the certificate gives you access to the regional registry for tourist rental licences. And you can check your social security contributions and manage that side too.
Basically, anything the Spanish administration would normally make you queue for. And if your Spanish is not great, this saves you not just time but the stress of doing those queues in a language you do not fully control.
How long it lasts, and one honest warning
The FNMT certificate for individuals is valid for four years. In the sixty days before it expires you can renew it online, directly from the FNMT website. One caveat, though. That online renewal works once, and only if your certificate came from the in-person appointment route. A certificate that was itself obtained by renewal, or by video identification, requires verifying your identity in person again. And if you let it expire, you start again from zero, appointment included. So set a calendar reminder now, while you are thinking about it.
One last practical note. The certificate lets you log in and identify yourself, but some procedures ask you to upload a digitally signed document. For that you need a separate free government program called Autofirma. You do not need it on day one, but do not be surprised when a tax form or a residency renewal asks for it.
If you would rather not deal with any of this
Look, I will be honest with you. A big part of our job is doing exactly these procedures for foreigners, so making a guide that teaches you to do it yourself can sound counterproductive for me. But I genuinely think that if you follow the steps, you will be all right, and I would rather you understand the tool either way.
That said, the booking in Spanish, the appointment, the passwords, the backup. If that sounds like more than you want to take on, no problem. We do this for clients every week from our offices in Moraira and Dénia. You contact us, I give you the price, and if you accept it, I help you. When I did it myself, the appointment slot came the following week; how long it takes depends mostly on when your local office can see you.
One last thing, and Juan makes me say it, because this is a law firm. This article is general information, not personalised advice. Your documents and your exact route can vary depending on your residency situation, so if something in your case does not match what I described, check before you commit to an appointment.
Common questions
Can foreigners get the Spanish digital certificate with video identification, without an appointment?
What documents do I need to bring to the digital certificate appointment?
How long is the FNMT digital certificate valid, and how do I renew it?
Should I get the national FNMT certificate or a regional one?
What can I use the Spanish digital certificate for?
Continue reading
Daniel Bertomeu Quiles · Asesor fiscal · AEDAF nº 06838 · APAFCV nº 3080
Expat Abogados is an independent law firm on the Costa Blanca, with offices in Moraira and Denia, acting for international clients since 1991. Juan Bertomeu is the lawyer (ICALI 4643); Daniel Bertomeu is the tax adviser (AEDAF).
Meet the teamThis article is general information, not legal advice, and does not create a lawyer–client relationship. Confirm your specific situation with a lawyer before acting.
