How to Get a Digital Signature in Valencia, Spain

In Gentle Journeys by Jamie11 Comments


We’re up for our second visa renewal this year.  When I reached out for advice from our good friends at YesValencia,   Linda asked me if I had ever considered getting a digital signature.  The COVID-19 lockdown here in Spain convinced her how important it is to be able to complete most paperwork online.  Then she added, “We could file your renewal from home.”

Sounds handy, no?

If fact there’s a lot of government and business paperwork you can do from home. You can use a certificado digital (digital signature) to:

So, how do you get your certificado digital (digital signature) here in Valencia?  It’s pretty easy and given enough chances, I’m sure you’ll get it right.  We very nearly managed it error free, so it can’t be that hard, can it?

There are three steps you’ll need to complete in order to get and use your certificado digital through the city of Valencia:

  1. Get a secret code.
  2. Use the secret code to download your personal certificado digital.
  3. Install the certificate on your web browser(s).

The only hard part is that you have to negotiate the first two steps in Spanish.  But it’s managable, even if you aren’t close to fluent.

Get your secret code from the city

You’ll start out by getting a 25-digit secret code called a código de generación de certificados de ciudadano (citizen certificate generation code).  In order to get this code you have to have a cita previa (appointment) at either of the two offices in Valencia that provide this service:

  • Oficina de Información y Registro de la Casa Consistorial  C/ Arzobispo Mayoral, 1, 46002 Valencia  (This is the back entrance of the City Hall building)
  • Oficina de Atención Ciudadana de la Tabacalera  C/ Amadeo de Saboya, 11, 46010 Valencia

Use this link to the Valencia city cita previa page.  Cita Previa.  The form is pretty basic so it shouldn’t intimidate you.  Just remember the “Servicio” you’re looking for is “CERTIFICADO DIGITAL CP”.  You’ll want to use your NIE not your Passport.  ALSO, don’t forget to print your appointment document.  You’ll need it to get in.

When we made our appointments, they were scheduled about two-weeks out.

At the appointment

What to bring with you:

  • Appointment document.  Double-check that you have correctly entered your email and telephone number.
  • National identity card.
  • Passport

It doesn’t take long at the appointment. I just presented my documentation and chatted a bit in my worse than pathetic Spanish while the nice lady entered my data.  She wasn’t sure whether my middle name was an apellido, but that’s it.

You will receive two printed documents:

  • a Contracto de Certification, the contract.

Be sure to double check that the email address on the contract you sign is correct.  Susan didn't realize there was an error on her contract and that entailed a second trip to the city office.  Fortunately, my appointment was the day after Susan's and we were able to resolve the problem easily.

  • a Códige de Generación de Certificados de Ciudadano

This page  includes the 25-digit code you’ll need to generate your digital certificate.  It also includes directions on how to generate the code.  The directions are in Spanish.  Don’t worry, I managed it and you can too.

Congratulations, you've just completed the first and most stressful step.  At least it was for me.  I'm always nervous when I imagine  my language skills aren't going to be up to snuff.

So you're heading home with a Contract and a Generation code.  Why not get your certificate generated and downloaded right away?  You have two weeks to generate your certificate before your code expires.

How to generate your certificate (certificado digital)

By the time you get home you should have received two emails from the Agencia de Tecnología y Certificación Electrónica. You'll need the information from both of these emails to generate your digital certificate.  That's why I suggest you double check the veracity of your email address when you sign the contracto.

Email 1, Subject: Correo de comprobación de posesión de cuenta de correo

Confirm Your email address

This is an email to confirm that you are the owner of the email account you provided at your appointment.   If you received the email correctly all you have to do is click on the link that reads: Pinche aquí para confirmar (Click here to confirm).

You need to confirm your email address before you can generate your digital certificate, which you will do from a link on the second email…

Email 2, Subject: Petición de generación de certificado

Use the link to go to the certificate generation page.

This email confirms that your request has been accepted.  It includes this link which opens the Agencia de Tecnología y Certificación Electrónica webpage where you can actually generate your certificate.

On the webpage, carefully fill in your NIE and the 25-digit secret code and the robot blocker.  You only get three chances to do it correctly before you have to start all over again with a new appointment.  Then click   “Authenticar código”.

I forgot to do a screen capture of the next page where you can create a password for your certificate.  The password must be between 10 and 20 characters long, and you should use numbers and letters, upper and lower case, etc.  You know the drill.

You can skip adding a PIN if you want to, but that means you’re leaving your signature that’s legal on all sorts of documents – including contracts unprotected!!!  Really, play it safe.  And write down the code in your secure password record keeping place.  Click “Continuar” to generate the code and open the download page.

Don't close the Download Page without actually downloading the certificate.

When the download page opens you have an opportunity to view the password (PIN) you just added to the digital certificate.  That’s a good time to double-check that you are safeguarding the correct password.  I double-checked mine, only to find that I had mistyped a number.  Whew, glad I caught that.

When you click “Descargar” you’ll be downloading your brand new digital certificate file.


Not so fast pal, you’re not done.  In order to use it you’ll have to install it in your favorite browser.

Installing and testing your digital certificate

Before you install your certificate it’s a good idea to make a backup copy and put it someplace that isn’t on your computer.  I use Dropbox, but that’s a personal preference.

Another personal choice is the browser you use.  I really like Mozilla’s Firefox browser and have used it for many years, so that’s where I installed our certificates.  It was simple.

From the Firefox menu, I opened “Preferences” then selected the “Privacy & Security” tab in the left hand column. On the Privacy & Security page I scrolled all the way to the bottom where I found “Certificates”.  I clicked on “View Certificates” to open the “Certificate Manager” popup window.

On the “Certificate Manager” I selected “Your Certificates” from the tabs at the top. Then I clicked the “Import” button from the selections at the bottom.

The Certificate Manager Window

"Import opened my file manager. I used the file manager window to find the certificate I wanted to import and clicked “Open”. Then I had to enter the Password of between 10 and 20 characters that I was smart enough to keep in a safe location. Firefox handled the rest.

My final task was to check that the whole kit and caboodle was working.

Confirming the installation

You can confirm the installation of your digital certificate by accessing the Personal Certification Services Area (APSC) here:   The browser will allow you to select your digital certificate and will ask you to enter the password. Do that correctly and you will access the main APSC screen.

If that happens you’re good to go with your new certificate.

Our next task is to file our visa renewal paperwork from home.  I’ll write up that process when we get it done.  Meanwhile, we recently finished filing our Spanish income tax Modelo 100 and very nearly, almost, just about did it right and on time (with a little help from our friends).  You can read about that here (when I actually write it that is.)

Jamie  wants “life on gentle cycle” to be a story of enough rather than a search for more.  His focus is on simplicity, quiet presence, low impact travel, and mostly on living gently. He also manages the technical aspects of



  1. Hello Jamie. Thank you so much for this post. Super helpful and well explained. We have followed all instructions (on our macs) and the certificates all say that they are valid and installed…. but when we try to test them in the browser they are not recognized. Any ideas what we are doing wrong??? thanks, Ana

    1. Author

      Hi Ana,
      It’s been a long time since I did this, so my memory is a bit fuzzy. Digital signatures were fairly new (at least to me) back then. I struggled a lot trying to get ours to work on Spanish government sites. Since then, Susan and I have left Spain, so I don’t have any current advice. I think I remember browser compatibility issues. Maybe try using a different browser. Sorry I can’t be more helpful. Good luck — Jamie

  2. Thanks so much! We got our digital certificates today following your instructions and all went well. When I was making the online appointment no matter what I tried it would not accept our NIE number. I gave up and used our passport number. No problem, they fixed it at the appointment. It worked on Chrome with no issues.

    1. Author

      Hi John — I’m happy to hear of your success. Thanks for verifying it works with Chrome.

  3. Hi, Thanks so much for this, really helpful. I tried to install with Chrome several times but couldn’t get it working – no problems at all with Firefox though.

  4. So, did you use the digital certificate to renew online? I will need to renew in a couple of months and I’m planning to do it online. I’m wondering what your turnaround time was, if they asked for any additional documentation, and any other details you’re willing to give about the online renewal process! Thanks for all the detailed information you provide on this blog.

    1. Author

      Hi Lauren,
      As it turned out,we did not renew on line,although we tried. We couldn’t manage to get our documents uploaded. After trying compressed files and I don’t remember how many different approaches we gave up. We had scheduled appointments as a backup and ended up using the appointments to turn in our renewal materials. Then nothing. Six weeks and no further word.

      Our friends and YesValencia tell us that none of their clients have gotten a response. Linda thinks that there might not have been any applications processed during August. The renewal process here in Valencia seems to have broken down. Sorry I don’t have any other information at this time.

  5. Nice overview! We have appointments later this week for this same purpose at another office in the city:


    1. So, it appears I was confused when I wrote my earlier comment. Madeline and I completed the process of obtaining our digital signatures earlier today. It turns out to have been a different process for us than what you’ve described here. Also, though we successfully installed our new certificates, we’re unable to verify them using the link you provided. Instead, we’ve been able to verify they work by accessing our respective “citizen folders” at the following site:

      To be clear, I’ve no idea what the differences might be between what we’ve done and what you’ve described. From what I understand, we can use the digital certificates we obtained today to pay taxes, get copies of our padrón certificates and renew our residency permits, among other things. Although we didn’t know about the following blog site until after we’d completed the process, the steps we followed to obtain our digital certificates are pretty well described here:

      Again, I’ve no idea what the differences might be, but it seems possible there’s more than one way to accomplish the same goal.

      1. Author

        Hi Jim,
        I’ve been looking around at digital signature certificate possibilities and I suspect you are right about there being more than one way to get one. As long as whichever one one gets works within the Spanish systems, I guess it doesn’t matter.

        Thanks for sharing your experience. Maybe between our experiences we’ll help someone else get through the task without a hitch.

  6. Jaime, this is great. I hope you post this on some of the expat sights on Facebook. I know you’d be helping tons of people.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.