Skip to content

Digital Signature

Overview

Digital signing is provider-side. BANA never holds certificates and never runs PKCS#11 / USB-token / HSM operations, nor builds PKCS#7 or XMLDSig structures. The merchant's CA certificate and the signature are managed entirely by VNPAY (viiAPI).

@nx/invoice only requests signing by setting config-driven boolean flags in the JSON issuance payload built by _buildInvoiceRequest. The provider performs the actual signing, release and tax-authority submission.

What @nx/invoice Does

ConcernOwner
Certificate storage, PKCS#11 / USB token / HSMVNPAY (provider)
XML signing (PKCS#7 / XMLDSig)VNPAY (provider)
Signing request@nx/invoice sets flags in _buildInvoiceRequest payload

Signing Flags

Set from TInvoiceProviderConfig (all optional) in the issuance request:

FlagSourceEffect (provider-side)
autoSignconfig.autoSignVNPAY signs the invoice with the merchant's CA certificate
autoReleaseconfig.autoReleaseVNPAY releases / issues the invoice after signing
autoSendCQTconfig.autoSendCqtVNPAY sends the signed invoice to the tax authority (CQT)

Signing Flow

Proprietary and Confidential. Unauthorized copying, distribution, or use of this software is strictly prohibited.