kikocis/gaiax-credentials-tool public
| .env.example | 127 B | |
| .gitignore | 61 B | |
| LICENSE | 1.1 KiB | |
| Makefile | 432 B | |
| README.md | 3.9 KiB | |
| certbot-certonly.sh | executable | 784 B |
| clone-sdsigner.sh | executable | 267 B |
| create-sdsigner-conf.sh | executable | 626 B |
| run-sdsigner.sh | executable | 1.7 KiB |
| sd-sign-process.graffle | 159.5 KiB | |
| sd-sign-process.png | 41.5 KiB | |
| self-description.json | 1.3 KiB | |
| ssl.conf | 266 B |
README.md
Gaia-X Self-Descriptions
A simple proof of concept of the process to build and sign a Self-Description using the Gaia-X Compliance Service. This has been developed in the context of the DATA CELLAR Horizon Europe project.
Prerequisites
- A Linux server that has ports 80 and 443 exposed to the Internet. You also need sudo access.
- Make.
- Docker.
- Git.
- A public DNS domain that points to the IP address of the previous Linux server.
Configuration
Create an .env file in the root folder that defines the following variables:
| Variable | Description |
|---|---|
CERTBOT_DOMAIN | The domain for which a Let's Encrypt certificate will be obtained. |
CERTBOT_EMAIL | The email of the domain owner. |
DELTA_DAO_SDSIGNER_COMMIT | deltaDAO/self-description-signer is a tool that simplifies the signing and validation of a Self-Description. This variable represents the commit hash that will be checked out locally. |
Check out the .env.example file to see an example.
Please note that the
DELTA_DAO_SDSIGNER_COMMIThash that appears in.env.exampleis the version that we used to validate this proof of concept. This means that you should probably use the same value unless you explicitly want to test another version of self-description-signer.
Then, update the provided self-description.json file to match the information of your Participant.
Run the project
Simply run:
make run-self-description-signer
The output will look something like the following:
./clone-sdsigner.sh
+ : f220dc1e2c1b0c302b10e58a0ad9c467d6c5ad37
+ git clone https://github.com/deltaDAO/self-description-signer.git self-description-signer
Cloning into 'self-description-signer'...
remote: Enumerating objects: 244, done.
[...]
π SD signed successfully (local)
β
Verification successful (local)
π ./output/1668009334582_self-signed_LegalPerson.json saved
π ./output/1668009334582_did.json saved
π Checking Self Description with the Compliance Service...
'Something went wrong:'
{
statusCode: 409,
message: 'Could not load document for given did:web: "did:web:gaiax.ctic.es#X509"',
error: 'Conflict'
}
[...]
π SD signed successfully (local)
β
Verification successful (local)
π ./output/1668009348412_self-signed_LegalPerson.json saved
π ./output/1668009348412_did.json saved
π Checking Self Description with the Compliance Service...
π SD signed successfully (compliance service)
β
Verification successful (compliance service)
π ./output/1668009348412_complete_LegalPerson.json saved
The final, validated self description will be located in:
self-description-signer/output/<timestamp>_complete_LegalPerson.json
A simplified version of this process is shown in the following diagram: