Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.63 KB

File metadata and controls

54 lines (35 loc) · 2.63 KB

Configuration

For configuring your locally installed version of the EUDIW Issuer, you need to change the following configurations.

1. Service Configuration

Base configuration for the EUDIW Issuer is located in app/app_config/config_service.py. These values can also be set as environment variables or in a .env file at app/.env

Parameters that should be changed:

  • service_url (Base url of the service)
  • trusted_CAs_path (Path to a folder with trusted IACA certificates)
  • revocation_service_url (status generation endpoint)
  • revocation_api_key (api key for revocation service)
  • revoke_service_url (revocation endpoint)
  • default_frontend (Identifier of the default front end)

You must copy your IACA trusted certificate(s) (in PEM format) to the trusted_CAs_path folder - you can find an example test IACA certificate for country Utopia (UT) here -.

2. Configuration of Countries

The supported countries configuration of the EUDIW Issuer is located in /app/app_config/config_countries.py.

Parameters that should be changed for each country:

  • name - name of the country
  • connection_type- options are eidasnode, oauth, and openid.
  • pid_mdoc_privkey- Document/Credential signer (DS) private key file location.
  • pid_mdoc_privkey_passwd - Document/Credential signer (DS) private key password.( Can be None or bytes. Example: b"password")
  • pid_mdoc_cert - Document/Credential signer (DS) certificate file location.

Change the default front end url at registered_frontends

You must copy your DS private key (in PEM format) to pid_mdoc_privkey file (the password must be defined in pid_mdoc_privkey_passwd), and the certificate (in DER format) to pid_mdoc_cert file.

You can find example test private DS keys and certificates, for country Utopia (UT) here - the password of the example test private DS keys is b"pid-ds-0002". To decrypt the private key you can run the following command openssl ec -in PID-DS-0002.pid-ds-0002.key.pem -out PID-DS-0002-decrypted.key.pem.

4. Metadata configuration

The EUDIW Issuer OAuth2 metadata configuration files are located in app/metadata_config/metadata_config.json and app/metadata_config/openid-configuration.json

You must change the base URL of the endpoints from https://issuer.eudiw.dev to a custom one or https://localhost if installed locally

Example:

"credential_issuer": "{base_url}",
"credential_endpoint": "{base_url}/credential",
"notification_endpoint": "{base_url}/notification",
"deferred_credential_endpoint": "{base_url}/deferred_credential",