Skip to content

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

License

Notifications You must be signed in to change notification settings

Counter178/digidoc4j-hwcrypto-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigiDoc4j hwcrypto demo webapp

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

  1. requirements

    • Java 1.8 (might also work with 1.7 - not tested)
    • Apache Maven 3.2 or above
  2. Fetch the source

    • git clone https://github.com/open-eid/digidoc4j-hwcrypto-demo.git
  3. Build & Run

    • Run from command line mvn clean package and java -jar target/digidoc4j-hwcrypto-demo-2.0.1-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.
      • If the building with Maven is too much hassle to you, then war-file is also available in github release area.
    • Open https://localhost:8080.
      • If you want to use some other port, then you must put additional parameter to command line, for example java -jar digidoc4j-hwcrypto-demo-1.0.7-SNAPSHOT.war --server.port=8085.
    • Make sure that you have installed the software necessary for electronic use of the ID-card into client computer.
    • For signing documents use test ID-card

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 52.4%
  • JavaScript 36.4%
  • HTML 9.7%
  • CSS 1.5%