Docs
api
Web Application Firewall(UEWAF)
AddWafDomainCertificateInfo

Add SSL Certificate - AddWafDomainCertificateInfo

Overview

Add SSL certificate, supports keyless

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is AddWafDomainCertificateInfo.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
DomainstringDomain NameYes
CertificateNamestringCertificate NameYes
SslPublicKeystringSSL Public KeyYes
SslMDstringCertificate MD5 check value, to enable keyless, only need to calculate the md5 of the public key.Yes
SslKeylessstringKeyless switch, default is off; optional values: on, off.Yes

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
IdintReturned SSL Certificate ID after successful additionNo

Example

Request Example

https://api.dezai.com/?Action=AddWafDomainCertificateInfo
&ProjectId=org-xxx
&Domain=www.test.com
&CertificateName=test
&SslPublicKey=LS0tLS1CRUdJTiBDFURS0tLS0tCk1JSUZyRENDQkpTZ0F3SUJBZ0lRQW
&SslPrivateKey=LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS
&SslMD=617d723ec99fa0a4132a9a54052d4cd6
&SslKeyLess=off

Response Example

{
  "Action": "AddWafDomainCertificateInfoResponse",
  "Id": 6,
  "RetCode": 0
}