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.
- Derived from https://github.com/rvillido/digidoc4j-hwcrypto-demo.git
- License: MIT
-
requirements
- Java 1.8 (might also work with 1.7 - not tested)
- Apache Maven 3.2 or above
-
Fetch the source
git clone https://github.com/open-eid/digidoc4j-hwcrypto-demo.git
-
Build & Run
- Run from command line
mvn clean package
andjava -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
.
- If you want to use some other port, then you must put additional parameter to command line, for example
- 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
- Run from command line
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.