---
title: "Create a Certificate Signing Request (CSR)"
method: POST
path: "/api/pki/restapi/createCSR"
tags: ["SSL Certificates"]
---

# Create a Certificate Signing Request (CSR)

`POST /api/pki/restapi/createCSR`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/api/pki/restapi/createCSR`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/api/pki/restapi/createCSR/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- object
  - `CNAME` string
  - `PASSWORD` string
  - `VALIDITY` integer
  - `ALG` string
  - `LEN` integer
  - `SIGALG` string
  - `SAN` string
  - `OU` string
  - `O` string
  - `L` string
  - `ST` string
  - `C` string

## Response `200`

CSR created

- PkiResponse: Response from PKI module endpoints (SSH/SSL)
  - `result` object
    - `status` string
    - `message` string
  - `details` object: Response payload (varies by endpoint)

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
