Skip to main content
POST
/
api
/
v1
/
pki
/
ca
/
internal
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/pki/ca/internal \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "enableDirectIssuance": true,
  "status": "active",
  "configuration": {
    "type": "root",
    "friendlyName": "<string>",
    "commonName": "<string>",
    "organization": "<string>",
    "ou": "<string>",
    "country": "<string>",
    "province": "<string>",
    "locality": "<string>",
    "notBefore": "<string>",
    "notAfter": "<string>",
    "maxPathLength": 0,
    "keyAlgorithm": "RSA_2048",
    "dn": "<string>",
    "parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "serialNumber": "<string>",
    "activeCaCertId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}'
{
  "projectId": "<string>",
  "enableDirectIssuance": true,
  "name": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "active",
  "type": "internal",
  "configuration": {
    "type": "root",
    "friendlyName": "<string>",
    "commonName": "<string>",
    "organization": "<string>",
    "ou": "<string>",
    "country": "<string>",
    "province": "<string>",
    "locality": "<string>",
    "notBefore": "<string>",
    "notAfter": "<string>",
    "maxPathLength": 0,
    "keyAlgorithm": "RSA_2048",
    "dn": "<string>",
    "parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "serialNumber": "<string>",
    "activeCaCertId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Body

application/json
name
string
required

The name of the Internal Certificate Authority to create. Must be slug-friendly.

Required string length: 1 - 64
projectId
string<uuid>
required

The ID of the project to create the Certificate Authority in.

enableDirectIssuance
boolean
required

Whether or not to enable direct issuance of certificates for the Internal Certificate Authority.

status
enum<string>
required

The status of the Internal Certificate Authority.

Available options:
active,
disabled,
pending-certificate
configuration
object
required

Response

Default Response

projectId
string
required
name
string
required
id
string<uuid>
required
status
enum<string>
required
Available options:
active,
disabled,
pending-certificate
type
enum<string>
required
Available options:
internal
configuration
object
required
enableDirectIssuance
boolean
default:true