Skip to main content

User Guide for Sample App

Overview


This page aims to facilitate your understanding and utilization of our DuitNow Signature Generator to perform essential tasks related to signature generation, verification and JSON Web Token (KWT) creation. The Sample App features four primary tabs, each with high-level explanations of their functionalities:

  1. 1. DuitNow Version 1: Generate signatures for Version 1 using XML format.
  2. 2. DuitNow Version 2, X-Signature: Generate a signature for Version 2 using string format.
  3. 3. DuitNow Version 2, JWS: Generate a JSON Web Token (JWT).
  4. 4. Verify Signature: Verify signed messages and signatures against the public key derived from the private key used for signing.

note

The sample app can be downloaded here.

Getting Started


  1. Navigate to the desired tab based on your document signing or verification needs.

  2. Fill in the mandatory inputs as specified for each tab.

  3. Details of the input steps for each tab explained in the respective section as below

  4. Click the "Generate" button to obtain the desired output.



JWS


An image from the static

Fields


FieldDefinition
Private Key PathThe sender’s private key file used to encrypt the information.
Certificate Serial NumberParticipant's Certificate Serial Number.
Business Message IDThe transaction identification to be enquired.
JWS PayloadThe Original JSON data message to be signed.
JWS-TokenThe generated JWT for bearer token.

Steps


  1. Click on 'Select' button to find your private key.

  2. Fill in your certificate serial number

  3. Click on 'Generate' button to generate the 'Business Message ID'. A random value will be generated. Alternatively you can fill in the value with the valid format.

  4. Fill in the JSON payload into the 'JWS Payload'. Minified and non-monified JSON message are supported.

  5. Click on the 'Generate' button to create the JWT.



Verify Signature


An image from the static

Fields


FieldDefinition
Certificate PathThe public key to decrypt the signed message created from the corresponding private key.
MessageThe message used to sign the signature with the corresponding private key
SignatureThe generated signature from the corresponding private key.

Steps


  1. Click on 'Select' button to find your private key.

  2. Fill in the signed message into the 'Message' field

  3. Fill in the generated signature into the 'Signature' field.

  4. Click on 'Verify Signature'.