diff --git a/api_docs/configuration.md b/api_docs/configuration.md index 077860f..a64e3ac 100644 --- a/api_docs/configuration.md +++ b/api_docs/configuration.md @@ -31,6 +31,7 @@ Parameters that should be changed for each country: 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](test_tokens/DS-token/) - 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`. ## 3. OID4VCI configuration diff --git a/app/app_config/config_countries.py b/app/app_config/config_countries.py index 9617823..9e83698 100644 --- a/app/app_config/config_countries.py +++ b/app/app_config/config_countries.py @@ -36,7 +36,7 @@ class ConfCountries: "EU": { "name": "nodeEU", "pid_url_oidc": cfgserv.service_url + "eidasnode/lightrequest?country=EU", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_EU.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_EU.pem", # "pid_mdoc_privkey": 'app\certs\PID-DS-0001_EU.pem', "pid_mdoc_privkey_passwd": None, # None or bytes, "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_EU_cert.der", @@ -56,8 +56,8 @@ class ConfCountries: formCountry: { "name": "FormEU", "pid_url": cfgserv.service_url + "pid/form", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_UT.pem", - # "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/hackathon-DS-0001_UT.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_UT.pem", + # "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/hackathon-DS-0001_UT.pem", # "pid_mdoc_privkey": 'app\certs\PID-DS-0001_UT.pem', "pid_mdoc_privkey_passwd": None, # None or bytes "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_UT_cert.der", @@ -83,7 +83,7 @@ class ConfCountries: }, "PT": { "name": "Portugal", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_PT.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_PT.pem", # "pid_mdoc_privkey": 'app\certs\PID-DS-0001_PT.pem', "pid_mdoc_privkey_passwd": None, # None or bytes "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_PT_cert.der", @@ -128,7 +128,7 @@ class ConfCountries: }, "EE": { "name": "Estonia", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_EE.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_EE.pem", # "pid_mdoc_privkey": 'app\certs\PID-DS-0001_EE.pem', "pid_mdoc_privkey_passwd": None, # None or bytes "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_EE_cert.der", @@ -164,7 +164,7 @@ class ConfCountries: "CZ": { "name": "Czechia", "pid_url_oidc": cfgserv.service_url + "eidasnode/lightrequest?country=CZ", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_CZ.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_CZ.pem", # "pid_mdoc_privkey": 'app\certs\PID-DS-0001_CZ.pem', "pid_mdoc_privkey_passwd": None, # None or bytes "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_CZ_cert.der", @@ -179,7 +179,7 @@ class ConfCountries: "NL": { "name": "Netherland", "pid_url_oidc": cfgserv.service_url + "eidasnode/lightrequest?country=NL", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_NL.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_NL.pem", "pid_mdoc_privkey_passwd": None, # None or bytes "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_NL_cert.der", "loa": "http://eidas.europa.eu/LoA/high", @@ -193,7 +193,7 @@ class ConfCountries: "LU": { "name": "Luxembourg", "pid_url_oidc": cfgserv.service_url + "eidasnode/lightrequest?country=LU", - "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privkey/PID-DS-0001_LU.pem", + "pid_mdoc_privkey": "/etc/eudiw/pid-issuer/privKey/PID-DS-0001_LU.pem", "pid_mdoc_privkey_passwd": None, # None or bytes "pid_mdoc_cert": "/etc/eudiw/pid-issuer/cert/PID-DS-0001_LU_cert.der", "loa": "http://eidas.europa.eu/LoA/high", diff --git a/install.md b/install.md index 1277d2c..b4286a1 100644 --- a/install.md +++ b/install.md @@ -235,7 +235,7 @@ To run the EUDIW issuer in Docker please follow these steps: ├── cert │ ├── PID-DS-0001_UT_cert.der │ └── PIDIssuerCAUT01.pem - └── privKeys + └── privKey └── PID-DS-0001_UT.pem ```