Skip to content

Commit

Permalink
Merge pull request #72 from ricklambrechts/update-privkey-directory
Browse files Browse the repository at this point in the history
Update privKey directory name in config and documentation
  • Loading branch information
pinamiranda authored Jan 20, 2025
2 parents 0cda02e + aa1811c commit ba8c01f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
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

0 comments on commit ba8c01f

Please sign in to comment.