Skip to content
Snippets Groups Projects

feat(docs): get jwk in SET / Encrypt

Merged Jonas Gröger requested to merge feat/FCON-155-Update-Docs into main
All threads resolved!
Files
2
@@ -32,23 +32,26 @@ Die Details sind der API-Spec zu entnehmen.
]}>
<TabItem value="curl" label="foo">
```shell title="Beispiel: Aktualisierung des Verschlüsselungsschlüssels eines Zustellpunktes"
$ export SERVICE_URL=...
$ export JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJJc3N1Z...NL-MKFrDGvn9TvkA
#### Aktualisierung des Verschlüsselungsschlüssels eines Zustellpunktes
```shell
$ SERVICE_URL=...
$ JWT_TOKEN=...
$ DESTINATION_ID=...
# Hinzufügen eines Schlüssels zu einer Destination
$ curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $JWT_TOKEN" \
--data '{"kty": "RSA", "kid": "new-encryption-key", "alg": "RSA-OAEP-256", "key_ops": ["wrapKey"], "x5c": ["..."], "e": "AQAB", "n": "..."}' \
"$SERVICE_URL/destinations/F65FEAB2-4883-4DFF-85FB-169448545D9F/keys"
"$SERVICE_URL/destinations/$DESTINATION_ID/keys"
# Setzen des Schlüssel-ID als Verschlüsselungsschlüssel in der Destination
# Setzen des Schlüssel-ID als Verschlüsselungsschlüssel
$ curl -X PATCH \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $JWT_TOKEN" \
--data '{"encryptionKid": "new-encryption-key"}' \
"$SERVICE_URL/destinations/F65FEAB2-4883-4DFF-85FB-169448545D9F"
"$SERVICE_URL/destinations/$DESTINATION_ID"
```
</TabItem>
Loading