Skip to content

privacybydesign/irma_email_issuer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Sander Hollaar
Jul 20, 2022
35522d1 · Jul 20, 2022
Jul 13, 2022
Jul 14, 2022
Jul 14, 2022
Apr 1, 2020
Jul 1, 2022
Jun 28, 2017
Jul 20, 2022
Jul 12, 2021
Jun 19, 2017
Jun 19, 2017
Jun 26, 2017

Repository files navigation

Email server

Add an email address for use in your IRMA app.

Setting up the server

Prerequisite

Go, Gradle v4, JDK, Yarn, and an installation of IRMA server:

git clone git@github.com:privacybydesign/irmago.git
cd irmago/
go install ./irma

Install

  1. Clone repository
git clone git@github.com:privacybydesign/irma_email_issuer.git
cd irma_email_issuer/
  1. Generate JWT keys for the issuer
./utils/keygen.sh ./src/main/resources/sk ./src/main/resources/pk
  1. Build the project
gradle build
  1. Copy src/main/resources/config.sample.json to build/resources/main/config.json and modify it
cp src/main/resources/config.sample.json build/resources/main/config.json
sed -i 's/"secret_key": "",/"secret_key": "thisisjustavalueandnotarealsecretsomemorecharactersuntilwehave64",/' ./build/resources/main/config.json
  1. Create and configure front end
( cd webapp/
yarn install
./build.sh nl
cat > build/assets/config.js <<EOD
var config = {
  IRMASERVER: 'http://localhost:8088',
  EMAILSERVER: 'http://localhost:8080/irma_email_issuer',
};
EOD
)
cp -a webapp/ src/main/
  1. Configure mail delivery in build/resources/main/config.json

Run

  1. Start IRMA server (in the root directory of this project)
~/go/bin/irma server --static-path ./webapp/build
  1. Run the application
gradle appRun
  1. Navigate to http://localhost:8088/ with CORS disabled (for example: chromium --disable-web-security --user-data-dir=/tmp/chromium-disable-web-security)