Create / Upload a Certificate
Attach an SSL/TLS certificate to the given load balancer. Three certificate types are supported:
| Type | Description |
|---|---|
self_signed | Auto-generate a self-signed certificate. |
let_encrypt | Auto-generate a Let's Encrypt certificate (requires cn_name and let_encrypt_email). |
upload | Upload an existing PEM certificate via cert_content. |
Authorization
AuthorizationRequiredBearer <token>OAuth Authentication
OpenScaler API uses OAuth, a standard for secure authorization. To access the API, obtain a token via the OpenScaler Platform.
Use the access_token in the Authorization header for requests:
Always keep your token secure and do not share it with anyone.
In: header
Request Body
application/jsonRequirednameRequiredstringName for this certificate.
cert_typeRequiredstringCertificate generation type.
Value in:
"self_signed" | "let_encrypt" | "upload"cn_namestringCommon Name (domain name). Required for let_encrypt.
let_encrypt_emailstringEmail address for Let's Encrypt notifications. Required for let_encrypt.
cert_contentstringPEM-encoded certificate content. Required for upload.
Path Parameters
lb_idRequiredstringA unique identifier for a load balancer instance.
Certificate created/uploaded successfully.