Skip to main content
PATCH
/
encrova-service
/
api
/
v1
/
ca
/
{ca_id}
Update Certificate Authority
curl --request PATCH \
  --url https://encryption.platform.dev.ai71services.ai/encrova-service/api/v1/ca/{ca_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "status": "active",
  "requireTemplateForIssuance": true
}
'
{
  "ca": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "parentCaId": "<string>",
    "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": "<string>",
    "notAfter": "<string>",
    "activeCaCertId": "<string>",
    "requireTemplateForIssuance": true
  }
}

Headers

x-api-key
string
required

Path Parameters

ca_id
string
required

Body

application/json
status
enum<string> | null

Status of the Certificate Authority (active or disabled)

Available options:
active,
disabled
requireTemplateForIssuance
boolean | null

Whether a template is required for issuing certificates from this CA

Response

Certificate Authority updated successfully

ca
object
required

The created Certificate Authority details