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; Signature type: ENVELOPED

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. In the sample below the test certificate "Janez Novak" and its attributes are used. Review the page source code for integration sample.

In table in section two are listened 3 XML text document. Check the documents you want to sign. Click the "Sign selected documents" button. The result will be displayed in the table row "Result - signed XML document". The Janez Novak certificate to sign the sample xml text will be pre-selected.

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. Samples XML text:

XML text to sign Select which XML to sign Result - signed XML document Result - Info about status, certificate