J A V A S C R I P T     I N T E G R A T I O N     S A M P L E     FOR BROWSER PLUGIN REPLACEMENT

Sign multiple XML documents with single cert selection; ENVELOPED - put signature in specified position

When invoking digital signing by default a dialog for certificate selection will be opened. Only certificates which match search criteria will be presented. Multiple documents will be signed using that single certificate. Enveloped signature is used and the resulting Signature element is positioned inside signed XML in specified spot. In the sample below the test certificate "Janez Novak" and its attributes are used. Review the page source code for integration sample.

Click the Sign button. The Janez Novak certificate to sign the sample xml text will be pre-selected.

The same XML document will be signed multiple times.

Prerequisites:

  • proXSign browser plugin replacement installed and running
  • Janez Novak certificate with private key installed in your system certificate store or adjust property values accordingly

1. Preset the certificate:

Common Name:

Serial Number:

Issuer:

Hash:

Hash base64 encoded:

2. Sample xml text:

3. Number of documents in batch:

4. sigPlacementPath use node path to specify Signature node position in XML:

5. Sample xml text signed:

6. Certificate details: