Skip to main content
POST
/
api
/
v1
/
cert-manager
/
certificates
/
import-certificate
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/cert-manager/certificates/import-certificate \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectSlug": "<string>",
  "certificatePem": "<string>",
  "privateKeyPem": "<string>",
  "chainPem": "<string>",
  "friendlyName": "<string>",
  "pkiCollectionId": "<string>"
}
'
{
  "certificate": "<string>",
  "certificateChain": "<string>",
  "privateKey": "<string>",
  "serialNumber": "<string>"
}

Body

application/json
projectSlug
string
required

Slug of the project to import the certificate into.

Minimum string length: 1
certificatePem
string
required

The PEM-encoded leaf certificate.

Minimum string length: 1
privateKeyPem
string
required

The PEM-encoded private key corresponding to the certificate.

Minimum string length: 1
chainPem
string
required

The PEM-encoded chain of intermediate certificates.

Minimum string length: 1
friendlyName
string

A friendly name for the certificate.

pkiCollectionId
string

The ID of the PKI collection to add the certificate to.

Response

Default Response

certificate
string
required

The issued certificate.

certificateChain
string
required

The certificate chain of the issued certificate.

privateKey
string
required

The private key of the issued certificate.

serialNumber
string
required

The serial number of the issued certificate.