/digidoc4j-hwcrypto-demo

DigiDoc4j demo with hwcrypto.js

Primary LanguageJavaMIT LicenseMIT

DigiDoc4j hwcrypto demo webapp

This is a Demo webapp for digital signing with the combination of hwcrypto.js on the frontend and DigiDoc4j on the backend.

  • License: MIT
  1. requirements
  • Java 1.8 (might also work with 1.7 - not tested)
  • Apache Maven 3.2 or above
  1. Fetch the source

  2. Build & Run

    • run mvn clean package && java -jar target/digidoc4j-hwcrypto-demo-1.2-SNAPSHOT.war
    • This will start an embedded Tomcat server instance at port 8080 over HTTPS (using Spring Boot)
    • You can also just run mvn clean package and drop that war to your favorite web server.
    • Open https://localhost:8080

HTTPS Connection

Signing must be done over secure HTTPS connection on the client side. Your Web server must support HTTPS connections. If you get "not_allowed" error message in the JavaScript console, then the client is using regular HTTP connection.