Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update privKey directory name in config and documentation #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api_docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions app/app_config/config_countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down