---
title: "POST /get-cert-challenge"
method: POST
path: "/get-cert-challenge"
tags: ["Authentication"]
---

# POST /get-cert-challenge

`POST /get-cert-challenge`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/get-cert-challenge`
- Auth: none declared

## Request body

- GetCertChallenge: GetCertChallenge is a command that gets a challenge for certificate authentication
  - `access-id` string: Access ID
  - `cert-data` string: Certificate data encoded in base64. Used if file was not provided.
  - `json` boolean: Set output format to JSON

## Response `200`

getCertChallengeResponse wraps response body.

- GetCertChallengeOutput
  - `challenge` string

## Other responses

- `400`: errorResponse wraps any error to return it as a JSON object with one "error" field.
- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/identity-access.md) - [All operations](https://skmtc.dev/akeyless/apis/identity-access/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/identity-access/revisions/6fbc3858ec88?raw)
