---
title: "Show certificate key"
method: GET
path: "/key"
tags: ["Administration"]
---

# Show certificate key

`GET /key`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/key`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/key/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve content of certificate key.

## Response `200`

OK

- object
  - `crt` string: Content of this certificate file for TLS or WSS transport protocol. The certificate file MUST be PEM-encoded with X.509.
  - `key` string: Content of this private certificate file for TLS or WSS transport protocol.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
