ALIYUN::SLB::Certificate is used to upload a certificate to a Server Load Balancer (SLB) instance. Server certificates and certificate authority (CA) certificates are supported.
If you set CertificateType to CA, you can upload only one CA certificate at a time.
If you set CertificateType to Server, you can upload only one server certificate and the relevant private key at a time.
Syntax
{
"Type": "ALIYUN::SLB::Certificate",
"Properties": {
"CertificateName": String,
"Certificate": String,
"AliCloudCertificateName": String,
"PrivateKey": String,
"ResourceGroupId": String,
"CertificateType": String,
"AliCloudCertificateId": String,
"Tags": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ResourceGroupId | String | No | Yes | The ID of the resource group. | None. |
CertificateName | String | No | Yes | The name of the certificate. | None. |
Certificate | String | No | No | The certificate that you want to upload. | None. |
AliCloudCertificateName | String | No | No | The name of the certificate that is provided by Alibaba Cloud Certificate Management Service. | None. |
PrivateKey | String | No | No | The private key that you want to upload. | None. |
AliCloudCertificateId | String | No | No | The ID of the certificate that is provided by Alibaba Cloud Certificate Management Service. | This property must be specified when you use a certificate from Alibaba Cloud Certificate Management Service. |
CertificateType | String | No | No | The type of the certificate. | Valid values:
|
Tags | List | No | Yes | The tags of the certificate. | You can add up to 20 tags. For more information, see Tags properties. |
Tags syntax
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | Yes | No | The key of the tag. | The tag key must be 1 to 128 characters in length and cannot contain |
Value | String | No | No | The value of the tag. | The tag value can be up to 128 characters in length and cannot contain |
Return values
Fn::GetAtt
CertificateId: the ID of the certificate.
Fingerprint: the fingerprint of the certificate.
Examples
For more examples, visit Listener.json and Listener.yml. In the examples, the following resource types are used: ALIYUN::SLB::Listener, ALIYUN::SLB::LoadBalancerClone, ALIYUN::SLB::Certificate, ALIYUN::SLB::DomainExtension, ALIYUN::SLB::VServerGroup, ALIYUN::SLB::Rule, and ALIYUN::SLB::BackendServerToVServerGroupAddition.