Hello , I’m playing around with the development SDK that I got from Zatca , I tried to follow the signing process with dummy data , when I tried to generate private key and sign with it the invoice it complains that the private key is not valid :
I used the following csr-config.properties : (as I said it is dummy data for getting familiar with the process ):
csr.common.name=Company Registeration Name
csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
csr.organization.identifier=300123456700003
csr.organization.unit.name=Company Unit Name
csr.organization.name=Company Registeration Name
csr.country.name=SA
csr.invoice.type=1100
csr.location.address=1234 King Fahd Rd, Riyadh, Saudi Arabia
csr.industry.business.category=Sales
what am I doing wrong? I appreciate any suggestion
Thanks for reaching out, Welcome to our community.
Can I kindly ask you to check and confirm that you are replacing the private key generated along with the CSR into the following path in the SDK (SDK\Java\zatca-einvoicing-sdk-Java-238-R3.3.9\Data\Certificates\ec-secp256k1-priv-key.pem)
If not please try to replace it with your private key, Let me know if that will resolve the issue you are facing.
Yes sir , I’m doing that I followed the instructions step by step , but I always couldn’t pass the step where I use my generated private key to sign the hashed invoice , it returns invalid private key
Did you change the “ec-secp256k1-priv-key.pem” file inside the SDK folder as recommended previously?
If so, and you are still facing the same issue, Kindly share your full concern via below mail, to schedule one to one meeting with our technical team if needed.