Tüm Ürünler
Search
Belge Merkezi

:UploadServerCertificate

Son Güncelleme:Oct 12, 2026

Bir sunucu sertifikası yükler.

Operation description

  • Tek seferde yalnızca bir sunucu sertifikası ve karşılık gelen özel anahtarı yükleyebilirsiniz.

  • Başarılı bir yükleme işleminden sonra, kullanıcıya ait tüm sunucu sertifikalarının parmak izleri döndürülür.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

slb:UploadServerCertificate

create

*Tüm kaynaklar.

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Tag

array<object>

No

Etiket listesi.

object

No

Etiket listesi.

Key

string

No

Kaynağın etiket anahtarı. N için geçerli değerler: 1 ile 20 arası. Bu parametreyi belirtirseniz boş bir dize olamaz.

Etiket anahtarı en fazla 64 karakter uzunluğunda olabilir. aliyun veya acs: ile başlayamaz ve http:// veya https:// içeremez.

TestKey

Value

string

No

Kaynağın etiket değeri. N için geçerli değerler: 1 ile 20 arası. Bu parametreyi belirtirseniz boş bir dize olabilir. Etiket değeri en fazla 128 karakter uzunluğunda olabilir. aliyun veya acs: ile başlayamaz ve http:// veya https:// içeremez.

TestValue

RegionId

string

Yes

Sunucu sertifikasının dağıtıldığı bölgenin kimliği.

Bölge kimliklerini sorgulamak için DescribeRegions işlemini çağırabilirsiniz.

cn-hangzhou

AliCloudCertificateId

string

No

Alibaba Cloud tarafından verilen sertifikanın kimliği.

Not

Alibaba Cloud tarafından verilen bir sertifika kullanıyorsanız bu parametre gereklidir.

775****

AliCloudCertificateName

string

No

Alibaba Cloud tarafından verilen sertifikanın adı.

Sertifika adını sorgulamak için GetUserCertificateDetail - Sertifika ayrıntılarını alma işlemini çağırabilirsiniz.

Not

Alibaba Cloud tarafından verilen bir sertifika kullanıyorsanız bu parametre gereklidir.

cloudcertificate

AliCloudCertificateRegionId

string

No

Alibaba Cloud tarafından verilen sertifikanın ait olduğu bölgenin kimliği.

Not

Alibaba Cloud tarafından verilen bir sertifika kullanıyorsanız bu parametre gereklidir.

cn-hangzhou

ServerCertificate

string

No

Yüklenecek genel anahtar sertifikası.

Not

Alibaba Cloud tarafından verilmeyen bir sertifika yüklüyorsanız bu parametre gereklidir.

-----BEGIN CERTIFICATE----- MIIGDTCC****** -----END CERTIFICATE-----

PrivateKey

string

No

Yüklenecek özel anahtar.

Not

Alibaba Cloud tarafından verilmeyen bir sertifika yüklüyorsanız bu parametre gereklidir.

-----BEGIN RSA PRIVATE KEY----- MIIEogIB****** -----END RSA PRIVATE KEY-----

ServerCertificateName

string

No

Yüklenecek ve Alibaba Cloud tarafından verilmeyen sunucu sertifikasının adı. Ad 1 ila 80 karakter uzunluğunda olmalı ve Çince karakterler, harfler, rakamlar, tire (-), eğik çizgi (/), nokta (.), alt çizgi (_) ve yıldız işareti (*) içerebilir.

Not

Alibaba Cloud tarafından verilmeyen bir sertifika yüklüyorsanız bu parametre gereklidir.

mycert01

ResourceGroupId

string

No

Kaynak grubunun kimliği.

rg-atstuj3rto****

Response elements

Element

Type

Description

Example

object

Yanıt veri yapısı.

AliCloudCertificateName

string

Alibaba Cloud tarafından verilen sertifikanın adı.

cloudcertificate****

CreateTimeStamp

integer

Sertifikanın oluşturulduğu zaman damgası.

1504147745000

ExpireTime

string

Sertifikanın sona erme zamanı. Zaman, UTC cinsinden YYYY-MM-DDThh:mm:ssZ biçiminde görüntülenir.

2022-10-18T23:59:59Z

CreateTime

string

Sertifikanın oluşturulma zamanı. Zaman, UTC cinsinden YYYY-MM-DDThh:mm:ssZ biçiminde görüntülenir.

2022-02-21T02:49:05Z

ServerCertificateId

string

Sunucu sertifikasının kimliği.

1321932713******_17f1b4b696b_1114720822_-1671******

ExpireTimeStamp

integer

Sertifikanın sona erdiği zaman damgası.

1504147745000

RegionId

string

Sunucu sertifikasının dağıtıldığı bölgenin kimliği.

cn-hangzhou

RequestId

string

İstek kimliği.

365F4154-92F6-4AE4-92F8-7FF34B540710

Fingerprint

string

Sunucu sertifikasının parmak izi.

8f:7d:cb:e5:f8:c8:33:9c:17:65:c1:92:30:9e:45:55:9c:3a:85:60

ServerCertificateName

string

Alibaba Cloud tarafından verilmeyen sunucu sertifikasının adı.

mycert01

CommonName

string

Sertifikanın Common Name alanına karşılık gelen etki alanı adı.

example.com

ResourceGroupId

string

Kaynak grubunun kimliği.

rg-atstuj3rt****

AliCloudCertificateId

string

Alibaba Cloud tarafından verilen sertifikanın kimliği.

775****

IsAliCloudCertificate

integer

Sertifikanın Alibaba Cloud Sertifika Yönetim Hizmeti'nden olup olmadığını gösterir.

  • 0: Sertifika Alibaba Cloud'dan değildir.

  • 1: Sertifika Alibaba Cloud'dandır.

0

SubjectAlternativeNames

object

SubjectAlternativeName

array

Sertifikanın alternatif etki alanı adlarının listesi.

string

Sertifikanın Subject Alternative Name alanına karşılık gelen, sertifikanın alternatif etki alanı adları dizisi.

["example.com","www.example.com"]

Examples

Success response

JSON format

{
  "AliCloudCertificateName": "cloudcertificate****",
  "CreateTimeStamp": 1504147745000,
  "ExpireTime": "2022-10-18T23:59:59Z",
  "CreateTime": "2022-02-21T02:49:05Z",
  "ServerCertificateId": "1321932713******_17f1b4b696b_1114720822_-1671******",
  "ExpireTimeStamp": 1504147745000,
  "RegionId": "cn-hangzhou",
  "RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
  "Fingerprint": "8f:7d:cb:e5:f8:c8:33:9c:17:65:c1:92:30:9e:45:55:9c:3a:85:60",
  "ServerCertificateName": "mycert01",
  "CommonName": "example.com",
  "ResourceGroupId": "rg-atstuj3rt****",
  "AliCloudCertificateId": "775****",
  "IsAliCloudCertificate": 0,
  "SubjectAlternativeNames": {
    "SubjectAlternativeName": [
      "[\"example.com\",\"www.example.com\"]"
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalParam.ServerCertificate The specified server certificate is illegal. Belirtilen ServerCertificate geçersizdir. Parametre kısıtlamalarını kontrol edin ve düzeltmeleri yaptıktan sonra yeniden deneyin.
400 InvalidParameter The specified ServerCertificate and PrivateKey fail to validate. Vgw IP boş. Vgw IP parametresini belirtin.
400 ServerCertificate.NotSupport The specified Region Not support ServerCertificate. Belirtilen bölgede sunucu sertifikaları desteklenmiyor.
400 InvalidParameter.AliCloudCertificateId The specified AliCloudCertificateId is invalid. Belirtilen AliCloudCertificateId geçersiz. Parametre kısıtlamalarını kontrol edin ve düzeltmeleri yaptıktan sonra tekrar deneyin.
400 OperationDenied.IllegalKeyLength The operation is not allowed because the key length of certificate is illegal.
400 InvalidParam.TagValue %s.
400 InvalidParam.TagKey %s.
400 SizeLimitExceeded.Tag %s.
400 MissingParam.TagKey The param MissingParam.TagKey is missing.
400 EccCertificateNotSupport The ECC certificate is not support. ECC sertifikaları desteklenmez.
400 CertificateFormatInvalid The certificate format is invalid. Sertifika biçimi geçersiz.
403 UnauthorizedRegion The specified region of is not authorized. Belirtilen bölge görünür değil.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.