# B2C Validate EInvoice Signature \[Failed\] Errors:

**URL:** <https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469>\
**Category:** Signing process\
**Created:** [August 18, 2024, 10:22am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469 "2024-08-18T10:22:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhattiasadlatif](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@bhattiasadlatif](https://zatca1.discourse.group/u/bhattiasadlatif)\
**Post date:** [August 18, 2024, 10:22am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/1 "2024-08-18T10:22:29Z")

</div>

Dear All,

after signing with with Simulation Enviroment PCSID, validating the xml with following command

fatooranet validate -invoice “D:\SignedInvoice.xml”

getting following error

Validate XSD [Success]  
Validate EN Schematrons [Success]  
Validate KSA Schematrons [Success]  
Validate QR Code [Success]  
Validate EInvoice Signature [Failed]  
Errors:  
\*\*\*\* [Error] CODE: signatureValue, MESSAGE: Wrong signature value.  
\*\*\*\* [Error] CODE: X509IssuerName, MESSAGE: wrong X509IssuerName  
\*\*\*\* [Error] CODE: X509SerialNumber, MESSAGE: wrong X509SerialNumber  
Validate EInvoice PIH [Success]  
Overall status [Failed]

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [August 18, 2024, 10:52am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/2 "2024-08-18T10:52:10Z")

</div>

Dear @bhattiasadlatif

Thanks for reaching out,

Please ensure that you are using the private key that generated with the CSR to the following path: zatca-einvoicing-sdk-238-R3.3.3\Data\Certificates\ec-secp256k1-priv-key.pem

For any further concerns please do not hesitate to reach out to our support team via below email,

SP support email: [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa)

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![Kraken007](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/kraken007/32/686_2.png) [@Kraken007](https://zatca1.discourse.group/u/Kraken007)\
**Post date:** [November 26, 2024, 10:04am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/3 "2024-11-26T10:04:54Z")

</div>

i have same issue  
i faced this error  
i trying to solve it

Validate XSD [Success]  
Validate EN Schematrons [Success]  
Validate KSA Schematrons [Success]  
Validate QR Code [Success]  
Validate EInvoice Signature [Failed]  
Errors:  
\*\*\*\* [Error] CODE: X509IssuerName, MESSAGE: wrong X509IssuerName  
\*\*\*\* [Error] CODE: X509SerialNumber, MESSAGE: wrong X509SerialNumber  
Validate EInvoice PIH [Success]  
Overall status [Failed]

So i decide to try ZATCA Fatora Console Test App

first i used default Certificate and Private key in \Data\Certificates  
i validate it with Success Result  
but i Validate also with SDK Code setps check

 ![Screenshot 2024-11-22 221513](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/1X/85189b1465720f8a2a51e05fb67c0eccc57f7c06.png)

as you see now it’s different result

after that i used ZATCA Fatora Console Test App for create CSR and PK Successfully  
and signed it using ZATCA Fatora Console Successfully  
then i validate it  
and this is result

 ![Screenshot 2024-11-22 210835](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/1X/808fd3ff46a959e8e57b5ad577c99e206622f55d.png)

any advice for this

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [November 26, 2024, 11:06am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/4 "2024-11-26T11:06:43Z")

</div>

Dear @Kraken007

Thanks for reaching out,

From the provided screens it seems that you are not using the latest version of the SDK, kindly install the latest version to comply with all the business rules changes, which is SDK3.3.7 and try it again.

To provide comprehensive support as usual, can I kindly ask you the below:  
1- Did you successfully generate your own certificate instead of using the default one? If yes  
a- On simulation or production env?  
b- What are the steps that you followed after getting the PCSID from ZATCA?

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![Firoz](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@Firoz](https://zatca1.discourse.group/u/Firoz)\
**Post date:** [December 24, 2024, 7:52am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/5 "2024-12-24T07:52:58Z")

</div>

Hi, I am also facing the same issue though I’m using the lastest SDK. Furthermore, my invoices are being cleared/reported by ZATCA successfully, but when I try to validate my invoices through Fatoora CLI, i get the error.

---

<div class="post-metadata">

**Author:** ![bhattiasadlatif](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@bhattiasadlatif](https://zatca1.discourse.group/u/bhattiasadlatif)\
**Post date:** [December 25, 2024, 7:01am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/6 "2024-12-25T07:01:52Z")

</div>

Dear @Firoz

Please use the latest SDK of ZATCA and copy the IKVM and Runtime folder from ZATCA SDK folder to same folder of your program exe file and copy DATA Folder from ZATCA SDK folder to 3 folder back from your program EXE file folder. hope it will solve your problem.

---

<div class="post-metadata">

**Author:** ![Firoz](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@Firoz](https://zatca1.discourse.group/u/Firoz)\
**Post date:** [January 21, 2025, 11:13am UTC](https://zatca1.discourse.group/t/b2c-validate-einvoice-signature-failed-errors/2469/7 "2025-01-21T11:13:13Z")

</div>

I’m using the latest one.
