Simulation Onboarding Issue : Error Invalid CSR

I will share all the information below step by step and with code i am using Please check :

1- i have completed sandbox CSID and Compliance invoices successfully

2- i moved to fatoora Simulation environment and generated CSR , got successful response then i decoded binarysecurity token to use as X509 certificate

Link that generated CSR : https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance

3- After generating CSR , i used binarysecurity : security as authorization and submitted all 6 types invoice ( standard , debit , credit | simplified , debit and credit ) . In every invoice i got successful message.

Link i submitted all invoices : https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance/invoices

4- in the last step i am getting an error : i wanted to generate PCSID as per forum and document so used my “compliance_request_id” that generated in simulation CSID and used same authorization that generated in step 2.

Link to generate PCSID : https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids


below i am attaching that generate my CSR , please check what am i doing wrong

My CSR generating code to test in Google Collab : click here

to check my CSR generation code in file : click here

1 Like

Dear @UnitedDev

Thanks for reaching out,

Can I kindly ask you to share the full concerns via below mail to schedule meeting if needed

SP mail: sp_support@zatca.gov.sa

Thanks,
Ibrahem Daoud.

please help me because in the 4th step while creating simulation PCSID i am getting this error

Here in this step i am getting this error :

{
“errorCode”: “400”,
“errorCategory”: “Invalid-CSR”,
“errorMessage”: “The provided Certificate Signing Request (CSR) is invalid.”
}

okay thank you for your response, please check i have added every information and i have emailed you on : sp_support@zatca.gov.sa

You may need to check what request you submitted to /production/csid. This endpoint has 2 actions POST and PATCH, make sure you send a POST Request to get the PCSID.

Hi,

We are facing a similar issue with a client of ours for simulation onboarding. Were you able to find a solution/workaround for this?

Dear @Adithya_Raviraja

Thanks for reaching out,

Can I kindly ask you to check it again and confirm if you are still facing the same response?

Thanks,
Ibrahem Daoud.

Hi @idaoud ,

Thank you for your response, we will attempt to re-onboard the client in simulation next week and let you know. FYI though, this issue was seen only in the simulation the same client was onboarded successfully in production.