/certificates
POST/certificates
Uploads CA certificates for the requesting account under a name. Requires a paid cloud-unit plan. Pass the name, or the returned "id", in "caCertificates" when you connect or create a session, and that session trusts the certificates while every other certificate check stays on. A name that is already taken returns 409, unless "replace" is true: then the certificate of that name is replaced and keeps its ID. The response never includes the PEM.
Note: This endpoint is also available at: /management/certificates for backwards compatibility.
Request
Body
- Schema
- Example (auto)
One or more CA certificates in PEM format, at most 10 certificates and 64 KB. Must not contain a private key.
A name for the certificate, unique in the account. Sessions can pass it in "caCertificates" in place of the ID. At most 64 characters, without commas, "/", "?", "#" or surrounding whitespace, and not starting with "cert_" or a dot.
Replace the certificate that already has this name. Its ID stays the same, so sessions that name it trust the new certificate at their next browser launch. Without it, a name that is taken returns 409.
{
"certificate": "string",
"name": "string",
"replace": true
}
Responses
- 200
- 400
- 401
- 403
- 404
- 408
- 429
- 500
- 503
What the API returns: metadata only, never the PEM.
Schema
- Fields
- Example (auto)
- Array [
- ]
Stays the same when the certificate is replaced under its name.
The name given at upload, unique in the account. Pass it, or the ID, in "caCertificates" when you connect or create a session.
certificates object[]required
The CA certificates in the uploaded bundle.
Subject of the certificate, one attribute per line joined with ", ".
SHA-256 fingerprint of the certificate, lowercase hex.
When the certificate stops being valid, ISO 8601.
The earliest expiry among them, ISO 8601.
{
"id": "string",
"name": "string",
"certificates": [
{
"subject": "string",
"fingerprint": "string",
"expiresAt": "string"
}
],
"expiresAt": "string",
"createdAt": "string",
"updatedAt": "string"
}
The request contains errors or didn't properly encode content.
The request is missing, or contains bad, authorization credentials.
The request targets a destination that is not allowed.
Resource couldn't be found.
The request took has taken too long to process.
Too many requests are currently being processed.
An internal error occurred when handling the request.
Service is unavailable.