docs
api
Global Dynamic Acceleration(PathX)
CreatePathXSSL

Create Certificate - CreatePathXSSL

Overview

Create an SSL certificate, you can pass the entire Pem certificate content to SSLContent, or pass the certificate, private key, and CA certificate separately.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreatePathXSSL.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID in the format of org-xxx. Please refer to the GetProjectList interface.Yes
SSLNamestringName of the SSL CertificateYes
SSLTypestringThe type of SSL certificate added currently only supports the Pem format.No
SSLContentstringThe complete content of the SSL certificate, the private key cannot use a password, including the private key of the encrypted certificate, user certificate or CA certificate, etc.No
UserCertstringUser Self-Signed Certificate ContentNo
PrivateKeystringThe private key of the encryption certificate cannot be protected by a password. After enabling password protection, you need to enter the password when restarting the service.No
CACertstringCA Issued Certificate ContentNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
SSLIdstringId of SSL CertificateYes

Example

Request Example

https://api.surfercloud.com/?Action=CreatePathXSSL
&ProjectId=org-xxx
&SSLName=ssss
&SSLType=Pem
&SSLContent=
&UserCert=---BEGIN----
&PrivateKey=---BEGIN----
&CaCert=

Response Example

{
  "Action": "CreatePathXSSLResponse",
  "RetCode": 0,
  "SSLId": "gssl-xxx"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved