Invoice Signing

How to sign a invoice by providing certificate and private key seperately. What is the command to sign a invoice using a particular certificate?

Hi @itujar_it ,

Thank you for reaching out, to sign an invoice using Java SDK please use the following command fatoora -sign -invoice “invoice path” -certificate “Certificate path” -privateKey “private key path”

Hi @lalomar
Thank you for your response. Can I use amazon s3 links for the certificate path, invoice path and private key path?

Hi @lalomar ,
This command is not working as expected. The command by default takes the certificate stored in /Certificates/cert.pem. Using -certificate “Certificate path” is of no use.

@itujar_it
Maybe you can get idea from this discussion

You can get how to generate Csr, Privatekey, Certificate and how to Signing Document from this thread.