---
title: "POST /api/v2/pki/certificate-templates/{templateName}/issue-certificate"
method: POST
path: "/api/v2/pki/certificate-templates/{templateName}/issue-certificate"
tags: ["PKI Certificate Templates"]
deprecated: true
---

# POST /api/v2/pki/certificate-templates/{templateName}/issue-certificate

`POST /api/v2/pki/certificate-templates/{templateName}/issue-certificate`

> **Deprecated.**

Deprecated. Use certificate applications instead: https://infisical.com/docs/documentation/platform/pki/applications/overview

## Path parameters

- `templateName` string, required

## Request body

- object
  - `projectId` string, required
  - `commonName` string, required
  - `ttl` string, required
  - `keyUsages` string[]
  - `extendedKeyUsages` string[]
  - `notBefore` string
  - `notAfter` string
  - `altNames` string

## Response `200`

Default Response

- object
  - `certificate` string, required
  - `issuingCaCertificate` string, required
  - `certificateChain` string, required
  - `privateKey` string, required
  - `serialNumber` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

## Changes

- **2026-09-26** `eb8ec9c10063` — 1 info
  - endpoint deprecated
- **2026-09-15** `838c6b7e6bb8` — 1 info
  - added the new `smartCardLogon` enum value to the request property `extendedKeyUsages/items/`
- **2026-07-31** `edde28ab3c8c` — 1 info
  - added the new `anyExtendedKeyUsage` enum value to the request property `extendedKeyUsages/items/`

[Change history](https://skmtc.dev/infisical/apis/infisical-api/changes/api/v2/pki/certificate-templates/:templateName/issue-certificate/post.md)

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) · [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc.dev/infisical/apis/infisical-api/revisions/514021b0a05e?raw)
