Ana içeriğe atla

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Form Data

Notes

  • certificateName must be unique within the project
  • alias must be unique per environment (can be same across environments)
  • environmentList is comma-separated (e.g., “production,staging”)
  • pemEncodedFile must be a valid PEM-encoded certificate file
  • Certificate file must not be empty
  • Certificate is automatically deployed to all specified environments

PEM File Format

The certificate file should be in PEM format:

Response

Success Response (200 OK)

Error Response (400 Bad Request)

or
or
or
or
or

Common Causes

  • Missing required form fields
  • Certificate name already exists
  • Alias already exists in the environment
  • Invalid PEM file format
  • Empty certificate file
  • Environment does not exist

cURL Example

Example 1: Create Certificate with Single Environment

Example 2: Create Certificate with Multiple Environments

Notes and Warnings

  • Certificate Name:
    • Must be unique within the project
    • Cannot be changed after creation
  • Alias:
    • Must be unique per environment
    • Same alias can be used in different environments
    • Used for certificate identification in keystore
  • PEM File Format:
    • Certificate must be in PEM format
    • File must include BEGIN and END markers
    • Base64 content between markers
  • Environment List:
    • Comma-separated list of environment names
    • All environments must exist
    • Certificate is deployed to all specified environments
  • Automatic Deployment:
    • Certificate is automatically deployed after creation
    • Deployment results are returned in the response
    • Failed deployments are included in environmentResults
  • Certificate Validation:
    • Certificate is validated during creation
    • Invalid certificates will cause creation to fail

Permissions

User must have SECRETS + MANAGE permission in the project. For deployment operations (when deploying certificates to environments), user must also have SECRETS + DEPLOY_UNDEPLOY permission.