Skip to content

This example demonstrates how to use a MIRkey or eHSM Hardware Security Module to sign a PDF file.

Notifications You must be signed in to change notification settings

ellipticSecure/signer-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example demonstrates how to use MIRkey or eHSM Hardware Security Modules to sign a PDF file

Some screenshots of the sample app

Main screen

Image of main screen

PIN entry

Enter PIN

Logged in

Logged In

Test certificate creation

Test cert dialog

PDF signed

Signed

Prerequisites:

  • Initialized MIRkey or eHSM with a user PIN set (instructions available here).
  • Java 9 or later to build.
  • Java 8 or later with JavaFx required to run.

Test instructions

  1. mvn package
  2. java -jar target/signer-app-0.0.5-SNAPSHOT-jar-with-dependencies.jar
  3. If you do not have a certificate on your device, use the "Generate Test Certificate" button to test.
Note: You may need to set the EHSM_LIBRARY environment variable if your libehsm.so/dylib/dll is not in a standard location.