Skip to main content

Add Certificate Settings for Clients Accessing a Custom CA

POST 

/api/v32.04/settings/certificates

x-prisma-cloud-target-env: {"permission":"authConfiguration","saas":false,"self-hosted":true}
x-public: true

Sets a certificate authority (CA) to trust and the validity period for client certificates.

Use client certificates to authenticate commands sent from the Docker client through Prisma Cloud Compute.

For more information, see Certificates.

cURL Request

Refer to the following example cURL request that uses basic auth to set the validity period for client certificates to seven days:

curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-w "\nResponse code: %{http_code}\n" \
-X POST \
-d '{"certificatePeriodDays": 7} ' \
"https://<CONSOLE>/api/v<VERSION>/settings/certificates"

Request

Body

    accessCaCert string

    AccessCACert is a custom CA certificate.

    certificatePeriodDays integer

    CertificatePeriodDays is the certificates period in days.

Responses

OK

Loading...