Verify XML Digital Signature Online

Verify every XML signature in a document: reference digests, RSA / ECDSA value, signer certificate, chain to Vietnamese CAs, signing time, XAdES.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Send an XML document (Vietnamese e-invoice, tax return, social insurance file, UBL / Peppol invoice, SAML message or any XML) and every ds:Signature in it is checked. For each Reference the target element is canonicalised (C14N 1.0 / 1.1, exclusive C14N, with or without comments; enveloped-signature and the not(ancestor-or-self::ds:Signature) XPath transform) and its digest compared: modified_elements names the element that was changed after signing, e.g. /HDon/DLHDon when an amount on an invoice was edited. The SignatureValue is then verified (RSA SHA-1 / 256 / 384 / 512, ECDSA P-256 / 384 / 521) over the canonical SignedInfo.

The signer certificate (embedded X509Certificate, or your own cert) is decoded with the Vietnamese identifiers commonly put in the subject (MST, CCCD, budget code), and its chain is built against the Vietnamese public CA list published by NEAC (rootca.gov.vn) and Ban Cơ yếu Chính phủ: status is valid (trusted chain or your certificate), valid_untrusted (mathematically valid, unknown issuer) or invalid. The signing time comes from XAdES SigningTime or the SignatureProperties used by Vietnamese e-invoices, with whether it is covered by the signature; XAdES SigningCertificate digests are compared too. On e-invoices the role (seller, buyer, tax authority) is read from DSCKS.

Same-document references only; DTDs and custom entities are refused (XXE protection); max 1 MB. Revocation (OCSP / CRL) is not checked. The service never takes private keys and never signs. Technical check only, not a legal validation.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/xml-dsig" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary '<ToKhai Id="tk1"><MST>0101234567</MST><KyKKhai>10/2026</KyKKhai><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo>…</SignedInfo><SignatureValue>…</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIDoTCC…</X509Certificate></X509Data></KeyInfo></Signature></ToKhai>'

API documentation → Get a free API key

FAQ

Does "valid" mean the invoice is legally valid?

No. It means the XML is unchanged since signing and the signature matches the certificate. Legal validity also depends on the certificate status at signing time, the tax authority code and the content.

Why valid_untrusted?

The signature is correct but the certificate does not chain to a CA in the Vietnamese public list (e.g. a self-signed or foreign certificate). Pass the expected certificate as cert to pin it.

Is my XML stored?

No. The document is verified in memory and discarded after the response.