-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from WorldHealthOrganization/docs/trusted-issue…
…r-specification feat(trusted_issuer): trusted issuer json specification
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
onboarding/DDCC/ISSUER/trusted-issuer-onboarding-specification.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Trusted Issuer | ||
|
||
Other credential types like Verifiable Credentials are using DIDs or other Issuer IDs which are not necessarily linked to any SCA, but with crypto material behind it. | ||
To support these issuers and their credentials, trusted issuers must be onboarded like SCAs and all other certificates. | ||
For the onboarding a JSON structure is used. | ||
|
||
## JSON structure specification | ||
|
||
The JSON structure is defined as follows named `Trusted-Issuer.json`: | ||
|
||
```json | ||
{ | ||
"name": "Ministry of Health", | ||
"url": "did:web:example.com", | ||
"urlType": "DID", | ||
"hash": "463bcd43a6ae45a5d9606adfb0c2d968cfacb73e0df827f05a7c7f781a1869c5", | ||
"sslPublicKeys": [ | ||
"MIIGwjCCBaqgAwIBAvd3QuY29tMEkGCCsG....Lz3lGqBrHBklHq7x5WK4dAipTLrG39u", | ||
"MIIGwjCCBaqgAwIBAvd3QuY29tMEkGCCsG....Lz3lGqBrHBklHq7x5WK4dAipTLrG40u" | ||
] | ||
} | ||
``` | ||
|
||
Multiple files can be provided by adding a numbered suffix like `Trusted-Issuer_1.json`, `Trusted-Issuer_2.json`. | ||
|
||
|
||
| Field | Optional | Type | constraints | Description | | ||
|---------------|----------|--------|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| name | No | String | 512 chars | Name of the Service | | ||
| url | No | String | 64 chars | A resolvable DID URL using did:web as DID method | | ||
| urlType | No | String | 25 chars | DID | | ||
| hash | No | String | 64 chars | SHA256 Hash of the content behind it (if applicable) | | ||
| sslPublicKeys | No | String | 2048 chars per entry | SSL Certificates of the endpoint hosting the DID document. Additional entry may be used to support key rotation. (Format: Base64 of the DER representation) | | ||
|
||
The JSON structure will be signed by the trust anchor and onboarded to the gateway. |