> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.fygaro.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Update Hacienda Credentials

## Are your Electronic Invoices rejected due to expired credentials? Follow this steps to update them:

The cryptographic key , its  provided  by Hacienda, and it will be expired in two years.  
Sometimes for security you will need to repeal it and create a new one.

In order to obtain the Cryptographic Key, you have to visit  ATV from Hacienda.

### Repeal existing Key (certificate )

#### (if its  your first time getting the credentials please scroll down and  go to: Generate new Key/certificate)

Login with your user and password  and select the person or society you would like to administrate. 

**Step 1.** Place the cursor on  "Comprobantes Electrónicos" on the higher menu.  
**Step 2.** Place the cursor on "Llave Criptográfica de Producción"  
**Step 3**. Please click on "Revocar llave criptográfica en produc."

![](https://storage.crisp.chat/users/helpdesk/website/b2c9c7bc120c5800/5ee3a8ce-b9dd-4cc4-b495-8007ee_6xbygt.png)

**Step 4**. On the new window it will show a "aceptar button " (please check the example) and click on "Aceptar".

![](https://storage.crisp.chat/users/helpdesk/website/7d6bf781e1c40400/8c8ad64d-0b03-4074-a91c-b6bb55_6jidzn.png)

### Generate new Key (certificate)

**Paso 1. Please click on the option**  “Comprobantes Electrónicos” its located on the main  bar  and then go to   “Llave Criptográfica de Producción” and click on  “Generar llave criptográfica en producción”.

[![](https://soporte.fygaro.com/hubfs/Knowledge%20Base%20Import/fygaro.intercom-attachments-1.comio1422518547c709652a55ad8dccb60e9ca2-4.png)](https://storage.crisp.chat/users/helpdesk/website/4944ab9912bef000/41556c2a-b9f3-4b7c-b5c3-865819_1hu4y8d.png)

**Step 2.** On the next step you will see a Box , there you will have to complete the section 1 and 2.

The PIN  you are going to create it will be necessary on the next steps, please keep it.  
  
**Step 3.** Click on the button  “Generar” on the  3 section , it will change to “Procesando”, then you will get the section  4, to continue, please click on the button   “Descargar” and then  “Acepte”. 

[![](https://soporte.fygaro.com/hubfs/Knowledge%20Base%20Import/fygaro.intercom-attachments-1.comio1422518553fdf1a3d037b2816232923f13-4.png)](https://storage.crisp.chat/users/helpdesk/website/25b76fa91a27ca0/ebfacf29-bd4d-4629-a9be-dd70ff_1gezpw9.png)

A document will be download in your computer (with the extension ".p12") it will be necessary on the next step.

### Synchronize with Fygaro 

   
Now that you already have your new or first certificate  you have to update ir or add it on Fygaro,  please go to : Settings >  Electronic invoice >  Electronic Invoice settings.  

**Step 1**. Click on  "Selection    +" Under the title name   "cryptographic Key".

![](https://storage.crisp.chat/users/helpdesk/website/49e975eac1a13c00/f2e85f08-b2da-45ec-8ae2-cacd20_1dpvyvt.png)

**Step 2.**  Search the Document download on the step 3 with the extension ".P2"  
  
**Step 3**. add the  PIN that was generated on the step  2 of the last section , with the title  "PIN".  
**Paso 4.** click   "Save  " is located  the inferior part on the right part.    
  

![](https://storage.crisp.chat/users/helpdesk/website/6c58876a3e68fc00/5cddb2ca-ae74-4914-9867-b5d10f_1dsr8cb.png)

If everything went through   the system will show you a green check 😀

To make sure all was correctly activated you would need to issue a real invoice.