Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

votingsystem/timestamp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config files

The application expects the content of the distribution directory 'docs/app-config-files' with values appropriate to the installation in the directory:

/var/local/wildfly/timestamp-server

It can be changed setting system environment var 'timestamp_server_dir' with the desired value

Configuration

  • The application has been developed and tested on Wildfly 10.
  • The application default working dir is in /var/local/wildfly/timestamp-server you can modify that location changing the system property timestamp_server_dir
  • Inside the config dir there must the content of docs/config completed with the values of your installation

enable appplication filter

To enable application filters change what follows to the standalone / domain server configuration ([details] (https://docs.jboss.org/author/display/WFLY8/Undertow+subsystem+configuration)):

    <servlet-container name="default" allow-non-standard-wrappers="true">

Build and Deploy on Wildfly

  1. Run the script setup-database-postgres.sh in order to create the database (it must be in the same folder that timestamp-server-postgres.sql)

  2. Make sure you have Wildfly server started.

  3. Make sure theres configured a datasource with the name:

     java:jboss/datasources/timestamp-server
    
  4. Use this command to build and deploy the archive:

     mvn clean package wildfly:deploy
    

Logging

Application will store log files in directory:

/var/log/wildfly/timestamp-server

You must setup the folder with the appropiated user privileges

Service URLs

genTime is the time at which the time-stamp token has been created by the TSA. It is expressed as UTC time (Coordinated Universal Time).

RFC 3161 timestamps

POST - http://$SERVER_DOMAIN/timestamp-server/api/timestamp

RFC 3161 discrete timestamps

POST - http://$SERVER_DOMAIN/timestamp-server/api/timestamp/discrete

A discrete timestamp is a timestamp that has a discrete value, f.e: all request between 01:00 and 02:00 will have as TimeStamp time 02:00, all between 04:00 and 05:00 will have 05:00 ...

Discrete timestamps are created to make it more difficult to trace electors analyzing the TimeStamp of the signed votes (the results of the elections are freely available online for anyone that could want to validate them).

Releases

No releases published

Packages

No packages published