Skip to content

Commit

Permalink
Merge pull request #9 from WorldHealthOrganization/docs/trusted-issue…
Browse files Browse the repository at this point in the history
…r-specification

feat(trusted_issuer): trusted issuer json specification
  • Loading branch information
tence authored Oct 11, 2023
2 parents 600822b + 71f38db commit 16287ee
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ Available Domains:
- DIVOC
- ICAO
- SHC

# Trusted Issuer

To onboard [Trusted Issuer](onboarding/DDCC/ISSUER/trusted-issuer-onboarding-specification.md), provide input via the subfolder ISSUER.

6 changes: 3 additions & 3 deletions onboarding/DDCC/ISSUER/Trusted_Issuer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "Ministry of Health",
"url": "did:web:example.com",
"urlType": "DID",
"hash": "sha-256 of the DID document",
"hash": "463bcd43a6ae45a5d9606adfb0c2d968cfacb73e0df827f05a7c7f781a1869c5",
"sslPublicKeys": [
"TLS public key of the DID document host",
"TLS public key of the DID document host to support key rotation"
"MIIGwjCCBaqgAwIBAvd3QuY29tMEkGCCsG....Lz3lGqBrHBklHq7x5WK4dAipTLrG39u",
"MIIGwjCCBaqgAwIBAvd3QuY29tMEkGCCsG....Lz3lGqBrHBklHq7x5WK4dAipTLrG40u"
]
}
35 changes: 35 additions & 0 deletions onboarding/DDCC/ISSUER/trusted-issuer-onboarding-specification.md
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.

0 comments on commit 16287ee

Please sign in to comment.