---
title: "Enrollment with client generated keys for an existing End Entity"
method: POST
path: "/v1/certificate/certificaterequest"
tags: ["v1/certificate"]
---

# Enrollment with client generated keys for an existing End Entity

`POST /v1/certificate/certificaterequest`

Enroll for a certificate given a PEM encoded  PUBLICKEY, PKCS10, CRMF, SPKAC, or CVC.

## Request body

- CertificateRequestRestRequest
  - `certificate_request` string — Certificate request
  - `username` string — Username
  - `password` string — Password
  - `include_chain` boolean
  - `certificate_authority_name` string — Certificate Authority (CA) name
  - `certificate_request_type` string — Certificate Request Type

## Response `200`

Successful operation

- CertificateEnrollmentRestResponse
  - `certificate` string, byte — Certificate
  - `serial_number` string — Hex Serial Number
  - `response_format` string — Response format
  - `certificate_chain` string[] — CA Certificate chain

## Changes

> 8 revisions in range; 1 could not be searched.

- **2025-03-11** `4045b1bab09f` — 1 breaking, 2 info
  - removed the success response with the status `201`
  - added the new optional request property `certificate_request_type`
  - added the success response with the status `200`
- **2025-03-11** `37878df36b77` — 1 breaking, 1 warning, 1 info
  - removed the success response with the status `200`
  - removed the request property `certificate_request_type`
  - added the success response with the status `201`
- **2025-01-24** `d0f3affe7c3c` — 1 breaking, 2 info
  - removed the success response with the status `201`
  - added the new optional request property `certificate_request_type`
  - added the success response with the status `200`
- **2024-07-05** `b6fc2ad168e5` — 1 breaking, 1 warning, 1 info
  - removed the success response with the status `200`
  - removed the request property `certificate_request_type`
  - added the success response with the status `201`

[Change history](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface/changes/v1/certificate/certificaterequest/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/44f8798658e2/schema)
