O recurso ALIYUN::CAS::SslCertificate cria um certificado SSL.
Sintaxe
{
"Type": "ALIYUN::CAS::SslCertificate",
"Properties": {
"Domains": List,
"CompanyName": String,
"DomainType": String,
"Email": String,
"Csr": String,
"Username": String,
"ProductCode": String,
"Phone": String,
"CertType": String,
"CertBrand": String,
"ValidateType": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
CertBrand |
String |
Não |
Não |
Marca do certificado SSL. |
Valores válidos:
|
|
CertType |
String |
Não |
Não |
Tipo do certificado. |
Valores válidos:
|
|
CompanyName |
String |
Não |
Não |
Nome da empresa solicitante do certificado. |
Nenhuma. |
|
Csr |
String |
Não |
Não |
Conteúdo do arquivo CSR gerado manualmente para o nome de domínio com OpenSSL ou Keytool. |
O algoritmo de chave no arquivo CSR deve ser Rivest-Shamir-Adleman (RSA) ou criptografia de curva elíptica (ECC). A chave RSA deve ter pelo menos 2.048 caracteres. Para mais informações sobre como criar um arquivo CSR, consulte Criar ou carregar um CSR. Se esta propriedade ficar vazia, o Certificate Management Service criará automaticamente um arquivo CSR. O arquivo CSR contém informações do servidor e da empresa. Ao solicitar um certificado SSL, envie o arquivo CSR à autoridade certificadora (CA). A CA assina o arquivo CSR com a chave privada do certificado raiz e gera um arquivo de chave pública para emitir o certificado. |
|
Domains |
List |
Não |
Não |
Nomes de domínio para vincular ao certificado. |
Especifique até cinco nomes de domínio. |
|
DomainType |
String |
Não |
Não |
Tipo de nome de domínio. |
Valores válidos:
|
|
|
String |
Não |
Não |
Endereço de e-mail do solicitante. |
Nenhuma. |
|
Phone |
String |
Não |
Não |
Número de telefone do solicitante. |
Nenhuma. |
|
ProductCode |
String |
Não |
Não |
Especificações do certificado. |
Valores válidos:
|
|
Username |
String |
Não |
Não |
Nome do solicitante. |
Nenhuma. |
|
ValidateType |
String |
Não |
Não |
Método de verificação da propriedade do nome de domínio. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
CertificateId: ID do certificado.
OrderId: ID do pedido do certificado.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Domains:
AssociationPropertyMetadata:
Parameter:
Type: String
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: |-
The domain to bind the certificate to. The specific requirements are as follows:
- Supports single or wildcard domains (e.g., *.aliyundoc.com).
- Multiple domains are supported. You can set up to 5 domains.
- If you set more than one domain name, the multiple domains can only be single domain name or wildcard domain name, not both single domain name and wildcard domain name.
**Note:** This is required when the certificate is bound to more than one hostname. This parameter is not allowed to be empty at the same time as the Csr parameter. If you set both this parameter and the Csr parameter, take the CN field value in the Csr as the domain name for the certificate to bind to.
Required: false
MinLength: 1
MaxLength: 5
DomainType:
Type: String
Description:
en: |-
Domain type. Valid values: one, all, multiple.
**Note:** This parameter must be specified along with or without the CertType and CertBrand parameters.
AllowedValues:
- all
- one
- multiple
Required: false
CertType:
Type: String
Description:
en: |-
Certificate type. Valid values: DV, OV, EV.
**Note:** This parameter must be specified along with or without the DomainType and CertBrand parameters.
AllowedValues:
- DV
- OV
- EV
Required: false
CertBrand:
Type: String
Description:
en: |-
Certificate brand. Valid values: Rapid, Globalsign, vTrus, Wosign, Digicert, Digicert pro, Geotrust, CFCA.
**Note:** This parameter must be specified along with or without the CertType and DomainTyp parameters.
AllowedValues:
- Rapid
- Globalsign
- vTrus
- Wosign
- Digicert
- Digicert pro
- Geotrust
- CFCA
Required: false
Resources:
SslCertificate:
Type: ALIYUN::CAS::SslCertificate
Properties:
Domains:
Ref: Domains
DomainType:
Ref: DomainType
CertType:
Ref: CertType
CertBrand:
Ref: CertBrand
Outputs:
CertificateId:
Description: The ID of the certificate issued to you.
Value:
Fn::GetAtt:
- SslCertificate
- CertificateId
OrderId:
Description: The ID of the certificate order.
Value:
Fn::GetAtt:
- SslCertificate
- OrderId
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Domains": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The domain to bind the certificate to. The specific requirements are as follows:\n- Supports single or wildcard domains (e.g., *.aliyundoc.com).\n- Multiple domains are supported. You can set up to 5 domains.\n- If you set more than one domain name, the multiple domains can only be single domain name or wildcard domain name, not both single domain name and wildcard domain name.\n**Note:** This is required when the certificate is bound to more than one hostname. This parameter is not allowed to be empty at the same time as the Csr parameter. If you set both this parameter and the Csr parameter, take the CN field value in the Csr as the domain name for the certificate to bind to."
},
"Required": false,
"MinLength": 1,
"MaxLength": 5
},
"DomainType": {
"Type": "String",
"Description": {
"en": "Domain type. Valid values: one, all, multiple.\n**Note:** This parameter must be specified along with or without the CertType and CertBrand parameters."
},
"AllowedValues": [
"all",
"one",
"multiple"
],
"Required": false
},
"CertType": {
"Type": "String",
"Description": {
"en": "Certificate type. Valid values: DV, OV, EV.\n**Note:** This parameter must be specified along with or without the DomainType and CertBrand parameters."
},
"AllowedValues": [
"DV",
"OV",
"EV"
],
"Required": false
},
"CertBrand": {
"Type": "String",
"Description": {
"en": "Certificate brand. Valid values: Rapid, Globalsign, vTrus, Wosign, Digicert, Digicert pro, Geotrust, CFCA.\n**Note:** This parameter must be specified along with or without the CertType and DomainTyp parameters."
},
"AllowedValues": [
"Rapid",
"Globalsign",
"vTrus",
"Wosign",
"Digicert",
"Digicert pro",
"Geotrust",
"CFCA"
],
"Required": false
}
},
"Resources": {
"SslCertificate": {
"Type": "ALIYUN::CAS::SslCertificate",
"Properties": {
"Domains": {
"Ref": "Domains"
},
"DomainType": {
"Ref": "DomainType"
},
"CertType": {
"Ref": "CertType"
},
"CertBrand": {
"Ref": "CertBrand"
}
}
}
},
"Outputs": {
"CertificateId": {
"Description": "The ID of the certificate issued to you.",
"Value": {
"Fn::GetAtt": [
"SslCertificate",
"CertificateId"
]
}
},
"OrderId": {
"Description": "The ID of the certificate order.",
"Value": {
"Fn::GetAtt": [
"SslCertificate",
"OrderId"
]
}
}
}
}