Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CAS::SslCertificate

Última atualização: Jun 27, 2026

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:

  • Rapid: certificado de validação de domínio (DV) GeoTrust

  • Globalsign: certificado GlobalSign

  • vTrus: certificado vTrus

  • Wosign: certificado WoSign

  • Digicert: certificado DigiCert

  • Digicert pro: certificado DigiCert Pro

  • Geotrust: certificado GeoTrust

  • CFCA: certificado da China Financial Certification Authority (CFCA)

CertType

String

Não

Não

Tipo do certificado.

Valores válidos:

  • DV: certificado DV

  • OV: certificado com validação de organização (OV)

  • EV: certificado com validação estendida (EV)

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:

  • one: nome de domínio único

  • multiple: vários nomes de domínio

  • all: nomes de domínio híbridos

Email

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:

  • digicert-free-1-free (padrão): certificado de teste individual do tipo Free com validade de três meses, disponível apenas no site da China (aliyun.com)

  • symantec-free-1-free: certificado de teste individual do tipo Pro com validade de 12 meses, disponível apenas no site da China (aliyun.com)

  • symantec-dv-1-starter: certificado DV curinga DigiCert

  • symantec-ov-1-personal: certificado OV de domínio único DigiCert

  • symantec-ov-w-personal: certificado OV curinga DigiCert

  • geotrust-dv-1-starter: certificado DV de domínio único GeoTrust

  • geotrust-dv-w-starter: certificado DV curinga GeoTrust

  • geotrust-ov-1-personal: certificado OV de domínio único GeoTrust

  • geotrust-ov-w-personal: certificado OV curinga GeoTrust

  • globalsign-dv-1-personal: certificado DV de domínio único GlobalSign

  • globalsign-dv-w-advanced: certificado DV curinga GlobalSign

  • globalsign-ov-1-personal: certificado OV de domínio único GlobalSign

  • globalsign-ov-w-advanced: certificado OV curinga GlobalSign

  • cfca-ov-1-personal: certificado OV de domínio único CFCA, disponível apenas no site da China (aliyun.com)

  • cfca-ev-w-advanced: certificado OV curinga CFCA, disponível apenas no site da China (aliyun.com)

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:

  • DNS: verifique via Domain Name System (DNS). Adicione um registro TXT aos registros DNS do nome de domínio na plataforma de gerenciamento de domínios. Este método exige permissões de gerenciamento na resolução de nomes de domínio.

  • FILE: verifique via arquivo. Crie um arquivo específico no servidor DNS. Este método exige permissões de administrador no servidor DNS.

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"
        ]
      }
    }
  }
}