Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using a USB Smart Card

(Chilkat is going to begin posting about the ongoing work with customers involving smart cards and tokens used for signing PDFs and XML invoices, etc.)

The links below are to examples that create a .p7m signature for an Italian e-Invoice (FatturaPA) using a private key stored on a smart card.

It duplicates the following OpenSSL command:

openssl cms -nosmimecap -md sha256 -nodetach -binary -cades -stream \
-outform DER -sign -signer certificato.pem \
-inkey 12345678 -keyform engine -in $1 -out $1.p7m -engine pkcs11

The card used to test is a Bit4id smart card using PKCS11 via bit4xpki.dll

Note: Chilkat has made several fixes and improvements for handling Bit4id smart cards in the last few versions.  If you are using an older version of Chilkat, it’s best to update to the latest version.  In general, improved support for various smart cards and tokens to avoid common problems is an ongoing effort.

C: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Chilkat2-Python: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
C++: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
C#: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
DataFlex: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Delphi ActiveX: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Delphi DLL: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Visual FoxPro: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Go: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Java: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Node.js: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Perl: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
PHP ActiveX: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
PHP Extension: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
PowerBuilder: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
PowerShell: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
PureBasic: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
CkPython: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Ruby: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Tcl: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Unicode C: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Unicode C++: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Visual Basic 6.0: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
VB.NET: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
VBScript: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader
Xojo Plugin: Italian FatturaPA (e-Invoice) Signed XML (CADES-BES P7M) using USB SmartCard Reader