Certificate Authorities
Update
Overview
- Introduction
- Authentication
- Examples
Endpoints
- Identities
- Token Auth
- Universal Auth
- GCP Auth
- AWS Auth
- Azure Auth
- Kubernetes Auth
- OIDC Auth
- JWT Auth
- Groups
- Organizations
- Projects
- Project Users
- Project Groups
- Project Identities
- Project Roles
- Project Templates
- Environments
- Folders
- Secret Tags
- Secrets
- Dynamic Secrets
- Secret Imports
- Identity Specific Privilege
- App Connections
- Secret Syncs
- Integrations
- Service Tokens
- Audit Logs
Infisical PKI
- Certificate Authorities
- Certificates
- Certificate Templates
- Certificate Collections
- PKI Alerting
Infisical SSH
- Certificates
- Certificate Authorities
- Certificate Templates
Infisical KMS
- Keys
Certificate Authorities
Update
Update CA
PATCH
/
api
/
v1
/
pki
/
ca
/
{caId}
curl --request PATCH \
--url https://us.infisical.com/api/v1/pki/ca/{caId} \
--header 'Content-Type: application/json' \
--data '{
"status": "active",
"requireTemplateForIssuance": true
}'
{
"ca": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"type": "<string>",
"status": "<string>",
"friendlyName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"commonName": "<string>",
"dn": "<string>",
"serialNumber": "<string>",
"maxPathLength": 123,
"keyAlgorithm": "<string>",
"notBefore": "2023-11-07T05:31:56Z",
"notAfter": "2023-11-07T05:31:56Z",
"activeCaCertId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requireTemplateForIssuance": false
}
}
Path Parameters
The ID of the CA to update.
Body
application/json
The status of the CA to update to. This can be one of active or disabled.
Available options:
active
, disabled
Whether or not certificates for this CA can only be issued through certificate templates.
Response
200
application/json
Default Response
Was this page helpful?
curl --request PATCH \
--url https://us.infisical.com/api/v1/pki/ca/{caId} \
--header 'Content-Type: application/json' \
--data '{
"status": "active",
"requireTemplateForIssuance": true
}'
{
"ca": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"parentCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"type": "<string>",
"status": "<string>",
"friendlyName": "<string>",
"organization": "<string>",
"ou": "<string>",
"country": "<string>",
"province": "<string>",
"locality": "<string>",
"commonName": "<string>",
"dn": "<string>",
"serialNumber": "<string>",
"maxPathLength": 123,
"keyAlgorithm": "<string>",
"notBefore": "2023-11-07T05:31:56Z",
"notAfter": "2023-11-07T05:31:56Z",
"activeCaCertId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requireTemplateForIssuance": false
}
}