---
title: "Add an SSL certificate"
method: POST
path: "/projects/{projectId}/certificates"
tags: ["Cert Management"]
---

# Add an SSL certificate

`POST /projects/{projectId}/certificates`

Add a single SSL certificate to a project.

## Path parameters

- `projectId` string, required

## Request body

- CertificateCreateInput
  - `certificate` string, required — The PEM-encoded certificate
  - `key` string, required — The PEM-encoded private key
  - `chain` string[] — The certificate chain
  - `is_invalid` boolean — Whether this certificate should be skipped during provisioning

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
