Page 1 of 1

FacturaE

Posted: Sun Aug 27, 2023 3:14 am
by MIGUELON
Hello everyone in Spain from 1/1/2024 it is mandatory to generate invoices in electronic format (FacturaE)
You have to present them in XLM, the problem is that you have to electronically sign this XLM file by selecting the digital certificates that are installed.
I don't have any problem to build the XML but to sign this file electronically.
Is there someone who can give me some help?
Thank you all

Re: FacturaE

Posted: Sun Aug 27, 2023 11:05 pm
by Piotr D
For digital signing I use Chilkat library (ActiveX). It's very helpful and gives additional tools when building a signature.
Regards
Piotr

Re: FacturaE

Posted: Sun Aug 27, 2023 11:59 pm
by k-insis
And if Chillkat is not option, you can sign any xml with xmlsec library (with windows binaries) - open source and free

https://www.aleksey.com/xmlsec/ (uses https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home which is used on Linux )

Generally syntax is:

xmlsec sign --pkcs12 certificate_file --output signedxmlinvoice.xml --pwd supersecretpassw0rdtocertfile --id-attr:Id NameOfOfAttrThatYouSign NameOfUnsignedXmlFile.xml

It is free as in free beer, it can be automated and no need to bother end user.

Windows binaries be here: https://www.aleksey.com/xmlsec/download/win64/
MIGUELON wrote: Sun Aug 27, 2023 3:14 am Hello everyone in Spain from 1/1/2024 it is mandatory to generate invoices in electronic format (FacturaE)
You have to present them in XLM, the problem is that you have to electronically sign this XLM file by selecting the digital certificates that are installed.
I don't have any problem to build the XML but to sign this file electronically.
Is there someone who can give me some help?
Thank you all