---
title: "Store a trusted certificate"
method: POST
path: "/certificates/{alias}"
tags: ["Certificates"]
---

# Store a trusted certificate

`POST /certificates/{alias}`

## Request body

- StoreCertificateRequest — Request to store a trusted DER certificate under the path alias.
  - `certificate` string, byte, required — DER-encoded certificate, base64-encoded.

## Response `201`

Trusted certificate stored.

- CertificateBytesResponse — A single DER certificate.
  - `certificate` string, byte, required — DER-encoded certificate, base64-encoded.

## Other responses

- `400` — Bad request due to invalid input parameters or request body.
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.dev/sphereon-opensource/apis/kms-rest-server-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/kms-rest-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/kms-rest-server-api/revisions/e9136cbde1c1/schema)
