SIgning Invoice Issue(Private Key file is not found)

Hi,

I’m trying to run the Sign Invoice Command on Oracle WebLogic Server Linux

Put the SDK in a Path and set a FATOORA_HOME:

/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Apps

ingimage

All files are set in the config.json and the cert.pem and private key in the correct folders

When write the command fatoora, it shows:

When signing the invoice:

this is a json.config:

{
“xsdPath”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd”,
“enSchematron”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Data/Rules/schematrons/CEN-EN16931-UBL.xsl”,
“zatcaSchematron”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl”,
“certPath”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Data/Certificates/cert.pem”,
“privateKeyPath”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Data/Certificates/ec-secp256k1-priv-key.pem”,
“inputPath”: “/u01/app/zatca/work”,
“outputPath”: “/u01/app/zatca/work/output”,
“usagePathFile”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Configuration/usage.txt”,
“keyPassFile”: “/u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Data/Certificates/key-pass.txt”
}

in this path: /u01/app/zatca/zatca-einvoicing-sdk-Java-238-R3.4.3/Configuration

any help?

Dear @amrhany

Thanks for reaching out.

Can you please confirm if you have JDK 11 in your device? If so, then can I kindly ask you to share your full concerns through the below mail, to schedule one to one meeting if needed.

Thanks,
Ibrahem Daoud.

Hi Ibrahem,

I would like to update you that the issue has been resolved. The key point was to define the SDK_CONFIG in the Linux environment variables, and after applying this configuration, everything is now working correctly.

Thank you for your support.

Best regards,
Amr

Thanks for this. Helped me