Elffuss BraidHub

kikocis/gaiax-credentials-tool public

main · 22.3 KiBRenderedRawPermalink
1# Gaia-X Self-Descriptions
2
3A simple proof of concept of the process to build and sign a Self-Description using the [Gaia-X Compliance Service](https://gitlab.com/gaia-x/lab/compliance/gx-compliance).
4
5The main contribution of this repository is demonstrating how to programmatically build [Gaia-X Self-Description](https://gaia-x.gitlab.io/policy-rules-committee/trust-framework/gaia-x_trust_framework/#gaia-x-self-description) documents, which are then validated by the [Gaia-X Lab Compliance API](https://compliance.lab.gaia-x.eu/v1-staging/docs). We leverage the fact that Let’s Encrypt is able to issue free certificates signed by a [valid Trust Anchor](https://gaia-x.gitlab.io/policy-rules-committee/trust-framework/trust_anchors/#list-of-defined-trust-anchors), ensuring compliance without incurring extra costs.
6
7## Prerequisites
8
9* A Linux server with _sudo_ access that has ports 80 and 443 exposed to the Internet.
10* A public DNS domain that points to the IP address of the previous Linux server.
11* Docker.
12* [Node 18+](https://nodejs.org/en/download/package-manager).
13* [Taskfile](https://taskfile.dev/installation/).
14
15## Usage
16
17First you need to update the configuration to match your environment. Copy the file `.env.default` to `.env` and, at least, update the following variables:
18
19| Variable | Description |
20| --- | --- |
21| `CERTBOT_DOMAIN` | The domain name of your server for which you want to generate the Let's Encrypt certificate. |
22| `CERTBOT_EMAIL` | The email of the owner of the domain name. |
23| `RESOURCE_OPENAPI_SPEC` | This variable should point to an OpenAPI schema that describes the HTTP API that you want to model as a [Gaia-X Resource](https://gaia-x.gitlab.io/policy-rules-committee/trust-framework/resource_and_subclasses/#virtual-resource). |
24
25Then, install the dependencies and request the certificates with the following commands:
26
27```console
28$ npm install
29$ sudo task get-certs
30```
31
32This will generate the certificates and store them in the `certs` folder. You can now build your Verifiable Credentials and submit the resulting Verifiable Presentation to the Compliance API:
33
34```console
35$ task build-credentials
36```
37
38The output should be something similar to the following:
39
40<details>
41<summary>Show example log</summary>
42
43```console
44$ LOG_LEVEL=debug task build-credentials
45task: [build-did] mkdir -p /home/user/gaiax-self-description-poc/htdocs/.well-known
46task: [build-did] npm run build-did
47
48> gaiax-self-description-poc@1.0.0 build-did
49> node ./src/index.js did
50
51task: [build-did] cp /home/user/gaiax-self-description-poc/certs/fullchain.pem /home/user/gaiax-self-description-poc/htdocs/.well-known/${FILENAME_X5U}
52task: [build-did] wget https://letsencrypt.org/certs/isrgrootx1.pem -O /home/user/gaiax-self-description-poc/certs/isrgrootx1.pem
53--2023-09-15 12:15:52-- https://letsencrypt.org/certs/isrgrootx1.pem
54Resolving letsencrypt.org (letsencrypt.org)... 3.70.101.28, 18.192.231.252, 2a05:d014:275:cb02::c8, ...
55Connecting to letsencrypt.org (letsencrypt.org)|3.70.101.28|:443... connected.
56HTTP request sent, awaiting response... 200 OK
57Length: 1939 (1.9K) [application/x-pem-file]
58Saving to: '/home/user/gaiax-self-description-poc/certs/isrgrootx1.pem'
59
60/home/user/gaiax-self-description-poc/certs/isrgrootx1 100%[======================================================================================================================================>] 1.89K --.-KB/s in 0s
61
622023-09-15 12:15:52 (9.49 MB/s) - '/home/user/gaiax-self-description-poc/certs/isrgrootx1.pem' saved [1939/1939]
63
64task: [build-did] cat /home/user/gaiax-self-description-poc/certs/isrgrootx1.pem >> /home/user/gaiax-self-description-poc/htdocs/.well-known/${FILENAME_X5U}
65task: [start-webserver] docker stop gaiax_nginx
66gaiax_nginx
67task: [start-webserver] docker rm -f gaiax_nginx
68gaiax_nginx
69task: [start-webserver] docker run -d -p 443:443 --restart unless-stopped --name gaiax_nginx -v /home/user/gaiax-self-description-poc/ssl.conf:/etc/nginx/conf.d/ssl.conf -v /home/user/gaiax-self-description-poc/certs/privkey.pem:/etc/nginx/certs/key.pem -v /home/user/gaiax-self-description-poc/certs/fullchain.pem:/etc/nginx/certs/cert.pem -v /home/user/gaiax-self-description-poc/htdocs:/usr/share/nginx/html/ nginx:1.23
70
715b6bb705a0b3e9871e2c32f37f616dab44f7829c59cee3597894a91e73ffcf27
72task: [build-credentials] npm run build-credentials
73
74> gaiax-self-description-poc@1.0.0 build-credentials
75> node ./src/index.js credentials
76
77[12:15:54.469] INFO (19161): Building Participant Verifiable Credential
78[12:15:55.581] DEBUG (19161):
79 @context: [
80 "https://www.w3.org/2018/credentials/v1",
81 "https://w3id.org/security/suites/jws-2020/v1",
82 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
83 ]
84 type: [
85 "VerifiableCredential"
86 ]
87 id: "https://dev.cticpoc.com/.well-known/participant.json"
88 issuer: "did:web:dev.cticpoc.com"
89 issuanceDate: "2023-09-15T12:15:54.478Z"
90 credentialSubject: {
91 "type": "gx:LegalParticipant",
92 "gx:legalName": "CTIC Technology Centre",
93 "gx:legalRegistrationNumber": {
94 "id": "https://dev.cticpoc.com/.well-known/lrn.json"
95 },
96 "gx:headquarterAddress": {
97 "gx:countrySubdivisionCode": "ES-AS"
98 },
99 "gx:legalAddress": {
100 "gx:countrySubdivisionCode": "ES-AS"
101 },
102 "gx-terms-and-conditions:gaiaxTermsAndConditions": "https://dev.cticpoc.com/.well-known/tsandcs.json",
103 "id": "https://dev.cticpoc.com/.well-known/participant.json"
104 }
105 proof: {
106 "type": "JsonWebSignature2020",
107 "created": "2023-09-15T12:15:55.562Z",
108 "proofPurpose": "assertionMethod",
109 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
110 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..ZhEN08JZL6g26wYRVvqB29HW3YZLnvPAwzqXrtr5P9lfWeFTcA76_LdOIOC7jiJFbe29oXzC3VkrlG70Y6o691UQVpjhTrrkPn1731MnmV-266-vtHuiSD3IJQyqeDhKAZIjDVpjtLVwtOen13sDdO-kK3uZU2KDp-9uda9ODyfkjlebHfHJcO-MOqhkESQjLV-tn3pT8MT50X8tXxqjG7ElncbosE8ECdxZwauOZB4i_oBC3kAbV8Y6mmYg0o6yIcmM-1NVXD7inACJTVsPiTkYfvvb4-12MQsaxyiWw5kxj6n8pQ_sMGH9x4AcNYTwHQVNsyh2xmPGktB6iEuyAw"
111 }
112[12:15:55.581] INFO (19161): Building Legal Registration Number Verifiable Credential
113[12:15:56.424] DEBUG (19161):
114 @context: [
115 "https://www.w3.org/2018/credentials/v1",
116 "https://w3id.org/security/suites/jws-2020/v1"
117 ]
118 type: "VerifiableCredential"
119 id: "https://dev.cticpoc.com/.well-known/lrn.json"
120 issuer: "did:web:dev.cticpoc.com"
121 issuanceDate: "2023-09-15T12:15:55.584Z"
122 credentialSubject: {
123 "id": "https://dev.cticpoc.com/.well-known/lrn.json",
124 "@context": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#",
125 "type": "gx:legalRegistrationNumber",
126 "gx:vatID": "ESX1234567X",
127 "gx:vatID-countryCode": "ES"
128 }
129 proof: {
130 "type": "JsonWebSignature2020",
131 "created": "2023-09-15T12:15:56.415Z",
132 "proofPurpose": "assertionMethod",
133 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
134 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..qywhYCE6vn_PtoQxGML-z8Wjfd6HSn-UUsVYLVCaA55Cq0gwVYij0pdPdvgf5H-5mCkPKUD85C9oxLT1izj_oEAd_zIc-RxrOcLTyBy6fIIv1fMZBU1p3MqURV4-uehnm3IcD19TqiX5oNCJflo2PQ0bMmFq034ts2S2sBumJ3jyIlq38GuRBUyFfCxIMbKPYctn0HYl2FXFf9GJrhxorVrKDN_DwTYJj6LbTj7-SwVQTCPX12TFSIuMKaNZliu3H3TM_1XXC7zkXWTrvQ0_VFRDRdwRXDdPE0-afeQ16wgg1Vgo05S0lrKCVDwjedu1VVMOAVUgwWf4FF2P9jlePQ"
135 }
136[12:15:56.425] INFO (19161): Building Terms and Conditions Verifiable Credential
137[12:15:57.253] DEBUG (19161):
138 @context: [
139 "https://www.w3.org/2018/credentials/v1",
140 "https://w3id.org/security/suites/jws-2020/v1",
141 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
142 ]
143 type: "VerifiableCredential"
144 id: "https://dev.cticpoc.com/.well-known/tsandcs.json"
145 issuer: "did:web:dev.cticpoc.com"
146 issuanceDate: "2023-09-15T12:15:56.427Z"
147 credentialSubject: {
148 "@context": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#",
149 "type": "gx:GaiaXTermsAndConditions",
150 "id": "https://dev.cticpoc.com/.well-known/tsandcs.json",
151 "gx:termsAndConditions": "The PARTICIPANT signing the Self-Description agrees as follows:\n- to update its descriptions about any changes, be it technical, organizational, or legal - especially but not limited to contractual in regards to the indicated attributes present in the descriptions.\n\nThe keypair used to sign Verifiable Credentials will be revoked where Gaia-X Association becomes aware of any inaccurate statements in regards to the claims which result in a non-compliance with the Trust Framework and policy rules defined in the Policy Rules and Labelling Document (PRLD)."
152 }
153 proof: {
154 "type": "JsonWebSignature2020",
155 "created": "2023-09-15T12:15:57.245Z",
156 "proofPurpose": "assertionMethod",
157 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
158 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..F9fBGoHiJ-40h9tFFP-ayozGMcKYdj72pAcKcjhS3zu9qbZG1vPBRzxowK1L3pzMxRZ2lda7u6pKpmISIVYHnhBYfj8cbybf-F2JpwOxQxvT_oMteUShEa0SFrmTEpIVBUA5cEwUMB2p4F_cSedRQcJHDdp_QdnPzL1aNr2b84RRrKF50_Z1fC8caTm7iL2jL9-4RA-FazHeLkzemt4bQyoC6bQtEtWX39225gSb-LYoWhkli6NNQnz1Yk1qz7FJt5Cq9emPa9B6FJE6QFphsbVUCs474In_-LW13yVusU9G7AU830r-P8-pI0nwRlqnI8-D8RfR1Nb2cW36JUUS2w"
159 }
160[12:15:57.253] INFO (19161): Building Service Offering Verifiable Credential
161[12:15:58.128] DEBUG (19161):
162 @context: [
163 "https://www.w3.org/2018/credentials/v1",
164 "https://w3id.org/security/suites/jws-2020/v1",
165 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
166 ]
167 type: "VerifiableCredential"
168 id: "https://dev.cticpoc.com/.well-known/serviceoffering.json"
169 issuer: "did:web:dev.cticpoc.com"
170 issuanceDate: "2023-09-15T12:15:57.270Z"
171 credentialSubject: {
172 "id": "https://dev.cticpoc.com/.well-known/serviceoffering.json",
173 "type": "gx:ServiceOffering",
174 "gx:providedBy": {
175 "id": "https://dev.cticpoc.com/.well-known/participant.json"
176 },
177 "gx:policy": "",
178 "gx:termsAndConditions": {
179 "gx:URL": "https://dev.cticpoc.com/.well-known/tsandcs.json",
180 "gx:hash": "b04e3496b6103bab2100478d3d313fe60579befabc6d077e4afa149f8fe310e4"
181 },
182 "gx:dataAccountExport": {
183 "gx:requestType": "API",
184 "gx:accessType": "digital",
185 "gx:formatType": "application/json"
186 }
187 }
188 proof: {
189 "type": "JsonWebSignature2020",
190 "created": "2023-09-15T12:15:58.104Z",
191 "proofPurpose": "assertionMethod",
192 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
193 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..OXNYWXrkiBLA3TGSj-6oC41ky-Nc1AkxAsxLZsnCT1QUXdQ3Vel8h2nshHDd7qPhyMl_0pOafcpcHryjiVOU1g0eTYKLsQy2ApcenB3dOsSW0kx7Fu4_tWPuW264q-i2oj2zBsiwoZClwSkoIuud9-5TIBbgIs932dcIShU49vpv_TeRROYZs7oW5tx4QSMCUgO6196GRNrukenksFtLrDsG3FCVynPM8xAc8pwK2-cPNXqsK4b21hNkoMpgGApCMiX_iglvYSl-QZYBj3yukHBNxGNfXo7ohOBuw894-rTT1E-A1o1XoflGeXNqrzyTKgTTgoEXWcGkVrcttGkSPg"
194 }
195[12:15:58.129] INFO (19161): Sending Verifiable Presentation to Compliance API
196[12:15:58.129] INFO (19161): POST -> https://compliance.lab.gaia-x.eu/main/api/credential-offers
197[12:15:58.129] DEBUG (19161):
198 @context: "https://www.w3.org/2018/credentials/v1"
199 type: "VerifiablePresentation"
200 verifiableCredential: [
201 {
202 "@context": [
203 "https://www.w3.org/2018/credentials/v1",
204 "https://w3id.org/security/suites/jws-2020/v1",
205 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
206 ],
207 "type": [
208 "VerifiableCredential"
209 ],
210 "id": "https://dev.cticpoc.com/.well-known/participant.json",
211 "issuer": "did:web:dev.cticpoc.com",
212 "issuanceDate": "2023-09-15T12:15:54.478Z",
213 "credentialSubject": {
214 "type": "gx:LegalParticipant",
215 "gx:legalName": "CTIC Technology Centre",
216 "gx:legalRegistrationNumber": {
217 "id": "https://dev.cticpoc.com/.well-known/lrn.json"
218 },
219 "gx:headquarterAddress": {
220 "gx:countrySubdivisionCode": "ES-AS"
221 },
222 "gx:legalAddress": {
223 "gx:countrySubdivisionCode": "ES-AS"
224 },
225 "gx-terms-and-conditions:gaiaxTermsAndConditions": "https://dev.cticpoc.com/.well-known/tsandcs.json",
226 "id": "https://dev.cticpoc.com/.well-known/participant.json"
227 },
228 "proof": {
229 "type": "JsonWebSignature2020",
230 "created": "2023-09-15T12:15:55.562Z",
231 "proofPurpose": "assertionMethod",
232 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
233 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..ZhEN08JZL6g26wYRVvqB29HW3YZLnvPAwzqXrtr5P9lfWeFTcA76_LdOIOC7jiJFbe29oXzC3VkrlG70Y6o691UQVpjhTrrkPn1731MnmV-266-vtHuiSD3IJQyqeDhKAZIjDVpjtLVwtOen13sDdO-kK3uZU2KDp-9uda9ODyfkjlebHfHJcO-MOqhkESQjLV-tn3pT8MT50X8tXxqjG7ElncbosE8ECdxZwauOZB4i_oBC3kAbV8Y6mmYg0o6yIcmM-1NVXD7inACJTVsPiTkYfvvb4-12MQsaxyiWw5kxj6n8pQ_sMGH9x4AcNYTwHQVNsyh2xmPGktB6iEuyAw"
234 }
235 },
236 {
237 "@context": [
238 "https://www.w3.org/2018/credentials/v1",
239 "https://w3id.org/security/suites/jws-2020/v1"
240 ],
241 "type": "VerifiableCredential",
242 "id": "https://dev.cticpoc.com/.well-known/lrn.json",
243 "issuer": "did:web:dev.cticpoc.com",
244 "issuanceDate": "2023-09-15T12:15:55.584Z",
245 "credentialSubject": {
246 "id": "https://dev.cticpoc.com/.well-known/lrn.json",
247 "@context": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#",
248 "type": "gx:legalRegistrationNumber",
249 "gx:vatID": "ESX1234567X",
250 "gx:vatID-countryCode": "ES"
251 },
252 "proof": {
253 "type": "JsonWebSignature2020",
254 "created": "2023-09-15T12:15:56.415Z",
255 "proofPurpose": "assertionMethod",
256 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
257 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..qywhYCE6vn_PtoQxGML-z8Wjfd6HSn-UUsVYLVCaA55Cq0gwVYij0pdPdvgf5H-5mCkPKUD85C9oxLT1izj_oEAd_zIc-RxrOcLTyBy6fIIv1fMZBU1p3MqURV4-uehnm3IcD19TqiX5oNCJflo2PQ0bMmFq034ts2S2sBumJ3jyIlq38GuRBUyFfCxIMbKPYctn0HYl2FXFf9GJrhxorVrKDN_DwTYJj6LbTj7-SwVQTCPX12TFSIuMKaNZliu3H3TM_1XXC7zkXWTrvQ0_VFRDRdwRXDdPE0-afeQ16wgg1Vgo05S0lrKCVDwjedu1VVMOAVUgwWf4FF2P9jlePQ"
258 }
259 },
260 {
261 "@context": [
262 "https://www.w3.org/2018/credentials/v1",
263 "https://w3id.org/security/suites/jws-2020/v1",
264 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
265 ],
266 "type": "VerifiableCredential",
267 "id": "https://dev.cticpoc.com/.well-known/tsandcs.json",
268 "issuer": "did:web:dev.cticpoc.com",
269 "issuanceDate": "2023-09-15T12:15:56.427Z",
270 "credentialSubject": {
271 "@context": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#",
272 "type": "gx:GaiaXTermsAndConditions",
273 "id": "https://dev.cticpoc.com/.well-known/tsandcs.json",
274 "gx:termsAndConditions": "The PARTICIPANT signing the Self-Description agrees as follows:\n- to update its descriptions about any changes, be it technical, organizational, or legal - especially but not limited to contractual in regards to the indicated attributes present in the descriptions.\n\nThe keypair used to sign Verifiable Credentials will be revoked where Gaia-X Association becomes aware of any inaccurate statements in regards to the claims which result in a non-compliance with the Trust Framework and policy rules defined in the Policy Rules and Labelling Document (PRLD)."
275 },
276 "proof": {
277 "type": "JsonWebSignature2020",
278 "created": "2023-09-15T12:15:57.245Z",
279 "proofPurpose": "assertionMethod",
280 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
281 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..F9fBGoHiJ-40h9tFFP-ayozGMcKYdj72pAcKcjhS3zu9qbZG1vPBRzxowK1L3pzMxRZ2lda7u6pKpmISIVYHnhBYfj8cbybf-F2JpwOxQxvT_oMteUShEa0SFrmTEpIVBUA5cEwUMB2p4F_cSedRQcJHDdp_QdnPzL1aNr2b84RRrKF50_Z1fC8caTm7iL2jL9-4RA-FazHeLkzemt4bQyoC6bQtEtWX39225gSb-LYoWhkli6NNQnz1Yk1qz7FJt5Cq9emPa9B6FJE6QFphsbVUCs474In_-LW13yVusU9G7AU830r-P8-pI0nwRlqnI8-D8RfR1Nb2cW36JUUS2w"
282 }
283 },
284 {
285 "@context": [
286 "https://www.w3.org/2018/credentials/v1",
287 "https://w3id.org/security/suites/jws-2020/v1",
288 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
289 ],
290 "type": "VerifiableCredential",
291 "id": "https://dev.cticpoc.com/.well-known/serviceoffering.json",
292 "issuer": "did:web:dev.cticpoc.com",
293 "issuanceDate": "2023-09-15T12:15:57.270Z",
294 "credentialSubject": {
295 "id": "https://dev.cticpoc.com/.well-known/serviceoffering.json",
296 "type": "gx:ServiceOffering",
297 "gx:providedBy": {
298 "id": "https://dev.cticpoc.com/.well-known/participant.json"
299 },
300 "gx:policy": "",
301 "gx:termsAndConditions": {
302 "gx:URL": "https://dev.cticpoc.com/.well-known/tsandcs.json",
303 "gx:hash": "b04e3496b6103bab2100478d3d313fe60579befabc6d077e4afa149f8fe310e4"
304 },
305 "gx:dataAccountExport": {
306 "gx:requestType": "API",
307 "gx:accessType": "digital",
308 "gx:formatType": "application/json"
309 }
310 },
311 "proof": {
312 "type": "JsonWebSignature2020",
313 "created": "2023-09-15T12:15:58.104Z",
314 "proofPurpose": "assertionMethod",
315 "verificationMethod": "did:web:dev.cticpoc.com#JWK2020",
316 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..OXNYWXrkiBLA3TGSj-6oC41ky-Nc1AkxAsxLZsnCT1QUXdQ3Vel8h2nshHDd7qPhyMl_0pOafcpcHryjiVOU1g0eTYKLsQy2ApcenB3dOsSW0kx7Fu4_tWPuW264q-i2oj2zBsiwoZClwSkoIuud9-5TIBbgIs932dcIShU49vpv_TeRROYZs7oW5tx4QSMCUgO6196GRNrukenksFtLrDsG3FCVynPM8xAc8pwK2-cPNXqsK4b21hNkoMpgGApCMiX_iglvYSl-QZYBj3yukHBNxGNfXo7ohOBuw894-rTT1E-A1o1XoflGeXNqrzyTKgTTgoEXWcGkVrcttGkSPg"
317 }
318 }
319 ]
320[12:16:00.712] INFO (19161): ✅ Compliance success
321[12:16:00.712] DEBUG (19161):
322 @context: [
323 "https://www.w3.org/2018/credentials/v1",
324 "https://w3id.org/security/suites/jws-2020/v1",
325 "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
326 ]
327 type: [
328 "VerifiableCredential"
329 ]
330 id: "https://compliance.lab.gaia-x.eu/main/credential-offers/0840d210-41d5-44cf-80b3-2931e91e7016"
331 issuer: "did:web:compliance.lab.gaia-x.eu:main"
332 issuanceDate: "2023-09-15T12:16:00.671Z"
333 expirationDate: "2023-12-14T12:16:00.671Z"
334 credentialSubject: [
335 {
336 "type": "gx:compliance",
337 "id": "https://dev.cticpoc.com/.well-known/participant.json",
338 "gx:integrity": "sha256-24f6e962aeee9cf784b056a33b8a17be27a0d1d132f7d135c9113aca0d2b43af",
339 "gx:integrityNormalization": "RFC8785:JCS",
340 "gx:version": "22.10",
341 "gx:type": "gx:LegalParticipant"
342 },
343 {
344 "type": "gx:compliance",
345 "id": "https://dev.cticpoc.com/.well-known/lrn.json",
346 "gx:integrity": "sha256-2a10b8ff79a8a588ec22ebdb757143e39d3a720c0b028f37f58ae7f5691921c4",
347 "gx:integrityNormalization": "RFC8785:JCS",
348 "gx:version": "22.10",
349 "gx:type": "gx:legalRegistrationNumber"
350 },
351 {
352 "type": "gx:compliance",
353 "id": "https://dev.cticpoc.com/.well-known/tsandcs.json",
354 "gx:integrity": "sha256-e27f92dde5ff8c44b81c29409ddd078008da1776775c97d39a5b59894a07d60e",
355 "gx:integrityNormalization": "RFC8785:JCS",
356 "gx:version": "22.10",
357 "gx:type": "gx:GaiaXTermsAndConditions"
358 },
359 {
360 "type": "gx:compliance",
361 "id": "https://dev.cticpoc.com/.well-known/serviceoffering.json",
362 "gx:integrity": "sha256-0884dad8149d6e93acfa2fa2395070854baac2c3c3dba45446d299b968488396",
363 "gx:integrityNormalization": "RFC8785:JCS",
364 "gx:version": "22.10",
365 "gx:type": "gx:ServiceOffering"
366 }
367 ]
368 proof: {
369 "type": "JsonWebSignature2020",
370 "created": "2023-09-15T12:16:00.683Z",
371 "proofPurpose": "assertionMethod",
372 "jws": "eyJhbGciOiJQUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..gkyw7P_ApFvlOJMQP3c3hKpRynI-j-koDfl36DnaoPSkeLbX7Qo-vvW7DFiQaUkb-5lls0Ge93fCkvLmrW3MaCuBgCa-SDv3a69Zm_dnO-Q665hBTec3oUzs9_WRS075-dgKdHNzPuFn_IucSDdGKqWI5k59z2jgXIZ9VCOYY72UofM11k1uoAkqg-W_KvFRvZmDEe6dIpUOahpxvZr3QpNPVQVv9kc_3mQlLyg62M6YqNOvEdUxjLEiqXEoXc4VArB6Tkki9KPeSCC2UTzVyhx9XumuSQG20dfkVr0CvFyocsXVApZq6VQEgVCvLbftV1Qklm-ZPucaNvwk9VKERg",
373 "verificationMethod": "did:web:compliance.lab.gaia-x.eu:main#X509-JWK2020"
374 }
375[12:16:00.712] INFO (19161): Writing resulting Verifiable Presentation to /home/user/gaiax-self-description-poc/htdocs/.well-known/vp.json
376```
377</details>
378
379## References
380
381| Reference | Description |
382| --- | --- |
383| [Gaia-X GitLab](https://gitlab.com/gaia-x) | A GitLab organization that contains the repositories for the software implementations and documentation materials of Gaia-X. | 1
384| [Gaia-X Glossary](https://gaia-x.gitlab.io/glossary/) | A comprehensive list of Gaia-X terms. |
385| [Gaia-X Digital Clearing House](https://gaia-x.eu/gxdch/) | A closer look at the services required to achieve Gaia-X compliance. |
386| [Gaia-X Digital Clearing House Status](https://docs.gaia-x.eu/framework/) | Public instances of the Gaia-X Digital Clearing House, including availability and status metrics. |
387| [Gaia-X Trust Framework](https://gaia-x.gitlab.io/policy-rules-committee/trust-framework/) | Detailed documentation of the minimal set of rules to be part of Gaia-X Ecosystem. |
388| [Simplified Gaia-X credentials usage flow](https://gitlab.com/gaia-x/lab/compliance/gx-compliance/-/blob/02928741c7071de30c9c9295599e1caad760c47a/README-api.md) | A diagram that shows how the Notary, Compliance Service and Registry fit together in the process of building and signing Gaia-X credentials (i.e., self-descriptions). |
389| [deltaDAO/self-description-signer](https://github.com/deltaDAO/self-description-signer) | The original repository that served as an inspiration and reference for this proof of concept. |