Upload Managed Certificate - UploadNormalCertificate
Overview
Upload Managed Certificate
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is UploadNormalCertificate . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
CertificateName | string | Certificate Name | Yes |
SslPublicKey | string | Base64 encoded value of the certificate public key | Yes |
SslPrivateKey | string | Base64 encoding value of the private key | Yes |
SslMD5 | string | Certificate signing, the MD5 value calculated by concatenating the public key base64 and the private key base64. | Yes |
SslCaKey | string | Base64 encoding value of the certificate chain file content | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
CertificateID | int | Operation's Certificate Id | No |
LongResourceID | string | Long Resource ID of the Certificate | No |
Example
Request Example
https://api.surfercloud.com/?Action=UploadNormalCertificate
&SslCaKey=lXUzWbSR
&SslPublicKey=lXUzWbSR
&SslCaKey=lXUzWbSR
&SslMD5=lXUzWbSR
&CertificateName=GoodCertcification
Response Example
{
"Action": "UploadNormalCertificateResponse",
"CertificateID": 7,
"LongResourceID": "FxCzCwyB",
"RetCode": 0
}