edit-icon download-icon


Last Updated: Mar 05, 2018


Upload a server certificate. Only one server certificate with the corresponding private key can be uploaded each time.

This API is transactional, that is, the server certificate and the private key are either uploaded successfully or not. After the certificate and private key are successfully added, the fingerprints of all the server certificates under your account are returned.

Request parameter

Name Type Required Description
Action String Yes

The action to perform. Valid value:


RegionId String Yes The ID of the region where an SLB instance is located.
ServerCertificate String Yes The server certificate to be uploaded.
ServerCertificateName String No The name of the server certificate.
PrivateKey String Yes The private key of the server certificate.
AliCloudCertificateId String No Certificate ID of Alibaba Cloud.
AliCloudCertificateName String No Certificate Name of Alibaba Cloud.
ResourceGroupId String No The ID of enterprise resource group.

Response parameter

Name Type Description
RequestId string The ID of the request.
ServerCertificateId String The ID of the server certificate.
ServerCertificateName String The name of the server certificate.
Fingerprint String The fingerprint of the server certificate.


Request example

  1. https://slb.aliyuncs.com/?Action=UploadServerCertificate
  2. &RegionId=cn-east-hangzhou-01
  3. &ServerCertificate=test
  4. &ServerCertificateName=mycert01
  5. &PrivateKey=wmsad!q23
  6. &<CommonParameters>

Response example

  • XML format

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <UploadServerCertificateResponse>
    3. <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    4. <ServerCertificateId>idkp-123-cn-test-01</ServerCertificateId>
    5. <ServerCertificateName>mycert01</ServerCertificateName
    6. <Fingerprint>01:DF:AB:CD</Fingerprint>
    7. </UploadServerCertificateResponse>
  • JSON format

    1. {
    2. "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
    3. "ServerCertificateId":"idkp-123-cn-test-01",
    4. "ServerCertificateName":"mycert01",
    5. "Fingerprint":"01:DF:AB:CD"
    6. }
Thank you! We've received your feedback.