curl --request POST \
--url https://us.infisical.com/api/v1/pki/ca \
--header 'Content-Type: application/json' \
--data '{
"projectSlug": "<string>",
"type": "root",
"friendlyName": "<string>",
"commonName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"notBefore": "<string>",
"notAfter": "<string>",
"maxPathLength": -1,
"keyAlgorithm": "RSA_2048",
"requireTemplateForIssuance": false
}'
{
"ca": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>",
"status": "<string>",
"enableDirectIssuance": true,
"name": "<string>",
"parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"friendlyName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"commonName": "<string>",
"dn": "<string>",
"serialNumber": "<string>",
"maxPathLength": 123,
"keyAlgorithm": "<string>",
"activeCaCertId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requireTemplateForIssuance": true,
"notAfter": "<string>",
"notBefore": "<string>"
}
}
Create CA
curl --request POST \
--url https://us.infisical.com/api/v1/pki/ca \
--header 'Content-Type: application/json' \
--data '{
"projectSlug": "<string>",
"type": "root",
"friendlyName": "<string>",
"commonName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"notBefore": "<string>",
"notAfter": "<string>",
"maxPathLength": -1,
"keyAlgorithm": "RSA_2048",
"requireTemplateForIssuance": false
}'
{
"ca": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>",
"status": "<string>",
"enableDirectIssuance": true,
"name": "<string>",
"parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"friendlyName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"commonName": "<string>",
"dn": "<string>",
"serialNumber": "<string>",
"maxPathLength": 123,
"keyAlgorithm": "<string>",
"activeCaCertId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requireTemplateForIssuance": true,
"notAfter": "<string>",
"notBefore": "<string>"
}
}
Default Response
The response is of type object
.
Was this page helpful?