Invalid-CSR","errorMessage":"The provided Certificate Signing Request (CSR) is invalid

Hi, i used simulation portal since 1/1/2025 when i requires id used api simulation get error

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

i applied all steps fine generate csr, complance, and submitted 6 xml files fine in final step get error above massage, this error in simulation but in production portal is good working.

any one see this error ? zatca is updated in role or system?

Dear @yazsys

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.

Dear Team

, i used simulation portal since Feb/12/2025 when i requires id used api simulation get error

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

i applied all steps fine generate csr, complance, and submitted 6 xml files fine in final step get error above massage, this error in simulation but in production portal is good working.
Still I am getting the issue Feb/16/2025
any one see this error ? zatca is updated in role or system?

Dear,
Thank you for reaching out.
kindly note that i was a known issue and has been solved could you try again.

To resolve the CSR generation error, follow these steps:

1-Access Fatoora Portal

Click Onboard New Solution Unit/Device to generate the OTP. Use the Simulation environment unless onboarded in Production, where OTP must be obtained from Production.

2-Prepare Config File

Ensure the VAT number in the CSR config file matches the VAT number linked to Fatoora.

1-Genrate the CSR by using this commands: -
Java:
Simulation: fatoora -sim -csr -csrConfig <configfile.properties>

.NET:
Simulation: fatooranet csr -sim -csrConfig <configfile.properties>

3-Generate CCSID by Using API Endpoints

Simulation: https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance
Production: https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance

If you need further assistance, feel free to reach out.

Thanks,