---
title: "Finalize enrollment"
method: POST
path: "/v1/certificate/{request_id}/finalize"
tags: ["v1/certificate"]
---

# Finalize enrollment

`POST /v1/certificate/{request_id}/finalize`

Finalizes enrollment after administrator approval using request Id

## Path parameters

- `request_id` integer, required

## Request body

- FinalizeRestRequest
  - `response_format` 'P12' | 'BCFKS' | 'JKS' | 'DER' — Response format
  - `password` string — Password
  - `key_alg` string — Key algorithm
  - `key_spec` string — Key specification

## Response `201`

successful operation

- CertificateRestResponse
  - `certificate` string[] — Certificate
  - `serial_number` string — Hex Serial Number
  - `response_format` string — Response format
  - `certificate_chain` array[] — Certificate chain
    - string[]
  - `certificate_profile` string — Certificate profile name
  - `end_entity_profile` string — End Entity profile name

## Changes

- **2025-03-11** `37878df36b77` — 3 breaking, 4 info
  - removed the enum value `P12, BCFKS, JKS, DER` of the request property `response_format`
  - the `certificate` response's property type/format changed from `string`/`byte` to `array`/`` for status `201`
  - the `certificate_chain/items/` response's property type/format changed from `string`/`byte` to `array`/`` for status `201`
  - added the new `BCFKS` enum value to the request property `response_format`
  - …3 more
- **2025-01-24** `d0f3affe7c3c` — 6 breaking, 1 info
  - removed the enum value `BCFKS` of the request property `response_format`
  - removed the enum value `DER` of the request property `response_format`
  - removed the enum value `JKS` of the request property `response_format`
  - removed the enum value `P12` of the request property `response_format`
  - …3 more
- **2024-07-05** `b6fc2ad168e5` — 3 breaking, 4 info
  - removed the enum value `P12, BCFKS, JKS, DER` of the request property `response_format`
  - the `certificate` response's property type/format changed from `string`/`byte` to `array`/`` for status `201`
  - the `certificate_chain/items/` response's property type/format changed from `string`/`byte` to `array`/`` for status `201`
  - added the new `BCFKS` enum value to the request property `response_format`
  - …3 more

[Change history](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface/changes/v1/certificate/:request_id/finalize/post.md)

---

[API](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface.md) · [All operations](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keyfactor/ejbca-rest-interface/revisions/37878df36b77/schema)
