Can you please tell me
How do we get the data in these 3 fields?
csr.common.name=TST-886431145-399999999900003
csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
csr.organization.identifier=399999999900003
Are these data supplied by ZATCA or should the software decide these values on their own?
Hi,
Normally I share this excel file with the companies to fill details and it has all details. Further details you can find in the ZATCA document User Manual
Developer Portal Manual Version 2
Thank you @Malik
its the serial number that i have doubts with. So if you are providing the EGS (software) to generate the xml and your EGS is same for different clients - each one still fills out a separate serial number for the same software?
Kindly send 3 samples to the correct compliance check link provided above, then you can proceed to the production CSID.
Additional note that you can find the updated APIs after logging to fatoora simulation portal (https://fatoora.zatca.gov.sa/) and navigate to API documentation.
sir I have problem in integration after I get the ccid and make the compliance I send try to have the psid it gives me an ERRORR
{
“errorCode”: “400”,
“errorCategory”: “Invalid-CSR”,
“errorMessage”: “The provided Certificate Signing Request (CSR) is invalid.”
}
csr.common.name=AGH-4650017660-300453212100003
I have the same issue at simulation
I generate csr once with Zatca .net SDK and once with openssl command
and get the same error today and yesterday before that it worked without any error
Thanks for reaching out, Welcome to our community.
To provide comprehensive support as usual, can I kindly ask you to collaborate with the below:
1- How you are generating the CSR? If you are using ZATCA SDK, what is the version?
2- What is the API that you are hitting?
3- If you can provide the full request and response along with the .cnf file for OpenSSL and the config file, and share it through the below SP mail, will help us in our investigation.
Thank you for your response.
I’ve sent you an email containing the request body, API, and OpenSSL configuration file.
Please note that this issue seems to be a general issue and not a specific case.
We have been following the same procedure before January 7, 2025, and it was working perfectly fine.
We are not using the ZATCA SDK directly.
We believe that some fields might have been added or modified on your side, which are now required in the CSR, but we haven’t been informed about them.
Could you please clarify if any additional fields are required?
also tried once with openssl but I still get the same error.
The csr i get is
“LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0NCk1JSUNRRENDQWVZQ0FRQXdnWnN4Q3pBSkJnTlZCQVlUQWxOQk1SWXdGQVlEVlFRTERBMVNhWGxoWkdnZ1FuSmgNCmJtTm9NVXd3U2dZRFZRUUtERVBZcDltRTJMZlppTm1LMllRZzJZVFpoTmluMkxQWXF0aTAyS2ZZc2RpbjJLb2cNCjJLZlpoTmluMksvWXA5aXgyWXJZcVNEWmlOaW4yWVRZcXRpdjJMSFppdGlvTVNZd0pBWURWUVFEREIxRVpYWnANClkyVXRNREF3TURBeExUTXdNREF6T0RBMk5Ua3dNREF3TXpCV01CQUdCeXFHU000OUFnRUdCU3VCQkFBS0EwSUENCkJBaE9KMFpQQ0U5enRJeUNvODR4UkxYSGtDamd4VElEd2RJVHp2TnNQOVdaUjgraEdUSWt5US9UWCtwMlFnOFMNCkREYTJyNTFyQjFRUjhtRzNWaDBEdnorZ2dlb3dnZWNHQ1NxR1NJYjNEUUVKRGpHQjJUQ0IxakFrQmdrckJnRUUNCkFZSTNGQUlFRnhNVlVGSkZXa0ZVUTBFdFEyOWtaUzFUYVdkdWFXNW5NSUd0QmdOVkhSRUVnYVV3Z2FLa2daOHcNCmdad3hSakJFQmdOVkJBUU1QVEV0VkVGWFFVbE1mREl0Vm1WeWMybHZiakl3TWpWOE15MDJaR0k1T0RJd1lTMDUNCk5EQTBMVFF5TWpZdFlUYzJOaTFtWXpoak1tWmhPR1JtTlRBeEh6QWRCZ29Ka2lhSmsvSXNaQUVCREE4ek1EQXcNCk16Z3dOalU1TURBd01ETXhEVEFMQmdOVkJBd01CREV4TURBeER6QU5CZ05WQkJvTUJsSnBlV0ZrYURFUk1BOEcNCkExVUVEd3dJVkhKaGFXNXBibWN3Q2dZSUtvWkl6ajBFQXdJRFNBQXdSUUlnWE9wYjRIME5BUTlvN1JsVGI4YXQNClBYZWZWT05tMkU2UDEvUHJUeVBHQUFjQ0lRRFlpUS8xV0NUdlRDRWxPY05FVGpKWFpHTUhhYTZxNklZdXRqZ3MNCjMwYjBlZz09DQotLS0tLUVORCBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0NCg==”
kindly please do your best to solve this problem
me and others get the same error with the same code we used before and was running but now not running (in simulation mode only)
This issue is related to OpenSSL version to fix it please follow the below steps:
1- Use the Win64OpenSSL_Light-3_3_0.exe version of OpenSSL.
2- Open the CMD from the same directory that contains your config.cnf file.
3- Use this command to generate the private key
(openssl ecparam -name secp256k1 -genkey -noout -out ec-secp256k1-priv-key.pem), The private key will be generated in the same directory.
4- Use this command to generate the public key
(openssl ec -in ec-secp256k1-priv-key.pem -pubout > ec-secp256k1-pub-key.pem), The public key will be generated in the same directory.
5- Use this command to generate the CSR
(openssl req -new -sha256 -key ec-secp256k1-priv-key.pem -extensions v3_req -config config.cnf -out my.csr) the decoded CSR will be generated in the same directory.
6- After that you need to encode the CSR base64 and send it to compliance API using it in the body as JSON, in header use the OTP from fatoora portal or fatoora simulation portal based on your config file if it’s for sim or production to receive the CCSID.
After following these steps you will be able to received the CCSID successfully,
On the other hand, our recommendation is to use ZATCA SDK the latest version as it’s working perfectly with no errors, you can download the SDK through Zatca,
ensure that you have the pre requests, for SDK_java version
(install the JDK 11), for .Net(version 8).
Additionally, you can review the readme file in the SDK after successfully download it, for the commands to be used.
Kindly try the suggested solution, and confirm if the issue resolved, If not do not hesitate to reach out our SP mail to schedule meeting if needed.
depending on this response it mean that csr value is accepted with first step and remain only to send compliance steps and after sent them we got csr key is invalid how this ?? if there issue with csr we didnt get this response and you know that
I have also sent an email with this response via teqanyco@gmail.com
subject:
for your reference.
thanks Ibrahem for your efforts
I tried again to generate CSR from Zatca .Net SDK lastest Version 3.3.9 but still get same error at the url “https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids”
The latest CSR I created with base64 format is
csr=“LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQ056Q0NBZDBDQVFBd2dZOHhDekFKQmdOVkJBWVRBbE5CTVJZd0ZBWURWUVFMREExS1lXUmtZV2dnWW5KaApibU5vTVVFd1B3WURWUVFLRERqWmhkaXQyTGZZcVNEWmhkaXYyS2ZaaE5tRTJZY2cyWVhaaE5tQjJLM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