B2C Validate EInvoice Signature [Failed] Errors:

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]

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

Thanks,
Ibrahem Daoud.

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

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

any advice for this

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.