Skip to content

heyellieday/eid-verify-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker based verifier for eID signed docs


Proof of concept for having a containerized process for verifying signed documents from eID holders.

It's really just a Dockerfile right now.

Uses https://github.com/open-eid/libdigidocpp under the hood, which is maintained by Estonia

Now contains a web server that passes through to the command line.

NOTE: This is a proof of concept and how the file downloading is handled is not ideal.S

Will update docs...

Steps to run locally, assuming you have docker set up.

Docker build step:

docker build --tag estoniaodao-verify:0.3 .

Enter into bash of container w/ verify lib:

docker run -it --name ee1 estoniaodao-verify:0.3 /bin/bash

Command to run in container to verify and unlock file:

/usr/local/bin/digidoc-tool open container-file.asice --extractAll

You can get a file to open from IPFS by downloading via curl like so:

curl https://url -o file.name

Command to start web server and bind to localhost

docker run -p 127.0.0.1:8080:8080/tcp --name ee1 estoniaodao-verify:0.3

TODO

  • Lots of things!
  • Optimize Dockerfile layers