Use o recurso ALIYUN::CAS::UserCertificate para carregar um certificado de usuário.
Sintaxe
{
"Type": "ALIYUN::CAS::UserCertificate",
"Properties": {
"Cert": String,
"CertificateName": String,
"EncryptCert": String,
"EncryptPrivateKey": String,
"Key": String,
"ResourceGroupId": String,
"ResourceId": String,
"SignCert": String,
"SignPrivateKey": String,
"Tags": List
}
}
Propriedades
Parâmetro | Tipo | Obrigatório | Editável | Descrição | Restrições |
Cert | String | Não | Não | Conteúdo do certificado no formato PEM. | Nenhuma |
CertificateName | String | Não | Não | Nome personalizado do certificado. | O nome pode ter até 128 caracteres e conter letras, dígitos e sublinhados (_). O nome do certificado deve ser exclusivo na conta Alibaba Cloud. |
EncryptCert | String | Não | Não | Conteúdo do certificado criptografado no formato PEM. | Nenhuma |
EncryptPrivateKey | String | Não | Não | Chave privada do certificado criptografado no formato PEM. | Nenhuma |
ResourceGroupId | String | Não | Não | ID do grupo de recursos. | Nenhuma |
ResourceId | String | Não | Não | ID do recurso. | Nenhuma |
SignCert | String | Não | Não | Conteúdo do certificado de assinatura no formato PEM. | Nenhuma |
SignPrivateKey | String | Não | Não | Chave privada do certificado de assinatura no formato PEM. | Nenhuma |
Tags | List | Não | Não | Tags do certificado. | Para mais informações, consulte Propriedades de Tags. |
Key | String | Não | Não | Chave privada do certificado no formato PEM. | Nenhuma |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
Parâmetro | Tipo | Obrigatório | Editável | Descrição | Restrições |
Key | String | Sim | Não | Chave da tag. | Nenhuma |
Value | String | Não | Não | Valor da tag. | Nenhuma |
Valores de retorno
Fn::GetAtt
SignCert: conteúdo do certificado de assinatura no formato PEM.ResourceGroupId: ID do grupo de recursos.CertId: ID do certificado.EncryptCert: conteúdo do certificado criptografado no formato PEM.SignPrivateKey: chave privada do certificado de assinatura no formato PEM.Cert: conteúdo do certificado no formato PEM.EncryptPrivateKey: chave privada do certificado criptografado no formato PEM.CertificateName: nome personalizado do certificado.Tags: tags do recurso.Key: chave privada do certificado no formato PEM.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Cert:
Description:
en: The certificate content in PEM format.
Required: false
Type: String
CertificateName:
Description:
en: "The custom certificate name. The name can be up to 128 characters in length\
\ and can contain letters, digits, and underscores (_).\nThe certificate name\
\ must be unique for an Alibaba Cloud account."
Required: false
Type: String
EncryptCert:
Description:
en: The encrypted certificate content in PEM format.
Required: false
Type: String
EncryptPrivateKey:
Description:
en: The private key of the encrypted certificate in PEM format.
Required: false
Type: String
Key:
Description:
en: The private key of the certificate in PEM format.
Required: false
Type: String
ResourceGroupId:
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Description:
en: The ID of the resource group.
Required: false
Type: String
ResourceId:
Description:
en: The ID of the resource.
Required: false
Type: String
SignCert:
Description:
en: The signing certificate content in PEM format.
Required: false
Type: String
SignPrivateKey:
Description:
en: The private key of the signing certificate in PEM format.
Required: false
Type: String
Tags:
AssociationProperty: List[Parameters]
AssociationPropertyMetadata:
ListMetadata:
Order:
- Key
- Value
Parameters:
Key:
Required: true
Type: String
Value:
Required: false
Type: String
Description:
en: A list of tags to add to the certificate.
MaxLength: 20
Required: false
Type: Json
Resources:
ExtensionResource:
Properties:
Cert:
Ref: Cert
CertificateName:
Ref: CertificateName
EncryptCert:
Ref: EncryptCert
EncryptPrivateKey:
Ref: EncryptPrivateKey
Key:
Ref: Key
ResourceGroupId:
Ref: ResourceGroupId
ResourceId:
Ref: ResourceId
SignCert:
Ref: SignCert
SignPrivateKey:
Ref: SignPrivateKey
Tags:
Ref: Tags
Type: ALIYUN::CAS::UserCertificate
Outputs:
Cert:
Description: The certificate content in PEM format.
Value:
Fn::GetAtt:
- ExtensionResource
- Cert
CertId:
Description: The ID of the certificate.
Value:
Fn::GetAtt:
- ExtensionResource
- CertId
CertificateName:
Description: The custom name of the certificate.
Value:
Fn::GetAtt:
- ExtensionResource
- CertificateName
EncryptCert:
Description: The encrypted certificate content in PEM format.
Value:
Fn::GetAtt:
- ExtensionResource
- EncryptCert
EncryptPrivateKey:
Description: The private key of the encrypted certificate in PEM format.
Value:
Fn::GetAtt:
- ExtensionResource
- EncryptPrivateKey
Key:
Description: The private key of the certificate in PEM format.
Value:
Fn::GetAtt:
- ExtensionResource
- Key
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceGroupId
SignCert:
Description: The signing certificate content in PEM format.
Value:
Fn::GetAtt:
- ExtensionResource
- SignCert
SignPrivateKey:
Description: The private key of the signing certificate in PEM format.
Value:
Fn::GetAtt:
- ExtensionResource
- SignPrivateKey
Tags:
Description: The tags of the resource.
Value:
Fn::GetAtt:
- ExtensionResource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SignCert": {
"Type": "String",
"Description": {
"en": "The signing certificate content in PEM format."
},
"Required": false
},
"ResourceGroupId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
"Description": {
"en": "The ID of the resource group."
},
"Required": false
},
"ResourceId": {
"Type": "String",
"Description": {
"en": "The ID of the resource."
},
"Required": false
},
"EncryptCert": {
"Type": "String",
"Description": {
"en": "The encrypted certificate content in PEM format."
},
"Required": false
},
"SignPrivateKey": {
"Type": "String",
"Description": {
"en": "The private key of the signing certificate in PEM format."
},
"Required": false
},
"Cert": {
"Type": "String",
"Description": {
"en": "The certificate content in PEM format."
},
"Required": false
},
"EncryptPrivateKey": {
"Type": "String",
"Description": {
"en": "The private key of the encrypted certificate in PEM format."
},
"Required": false
},
"CertificateName": {
"Type": "String",
"Description": {
"en": "The custom certificate name. The name can be up to 128 characters in length and can contain letters, digits, and underscores (_).\nThe certificate name must be unique for an Alibaba Cloud account."
},
"Required": false
},
"Tags": {
"AssociationPropertyMetadata": {
"Parameters": {
"Value": {
"Type": "String",
"Required": false
},
"Key": {
"Type": "String",
"Required": true
}
},
"ListMetadata": {
"Order": [
"Key",
"Value"
]
}
},
"Type": "Json",
"AssociationProperty": "List[Parameters]",
"Description": {
"en": "A list of tags to add to the certificate."
},
"Required": false,
"MaxLength": 20
},
"Key": {
"Type": "String",
"Description": {
"en": "The private key of the certificate in PEM format."
},
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CAS::UserCertificate",
"Properties": {
"SignCert": {
"Ref": "SignCert"
},
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"ResourceId": {
"Ref": "ResourceId"
},
"EncryptCert": {
"Ref": "EncryptCert"
},
"SignPrivateKey": {
"Ref": "SignPrivateKey"
},
"Cert": {
"Ref": "Cert"
},
"EncryptPrivateKey": {
"Ref": "EncryptPrivateKey"
},
"CertificateName": {
"Ref": "CertificateName"
},
"Tags": {
"Ref": "Tags"
},
"Key": {
"Ref": "Key"
}
}
}
},
"Outputs": {
"SignCert": {
"Description": "The signing certificate content in PEM format.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SignCert"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
}
},
"CertId": {
"Description": "The ID of the certificate.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CertId"
]
}
},
"EncryptCert": {
"Description": "The encrypted certificate content in PEM format.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EncryptCert"
]
}
},
"SignPrivateKey": {
"Description": "The private key of the signing certificate in PEM format.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SignPrivateKey"
]
}
},
"Cert": {
"Description": "The certificate content in PEM format.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Cert"
]
}
},
"EncryptPrivateKey": {
"Description": "The private key of the encrypted certificate in PEM format.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EncryptPrivateKey"
]
}
},
"CertificateName": {
"Description": "The custom name of the certificate.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CertificateName"
]
}
},
"Tags": {
"Description": "The tags of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
}
},
"Key": {
"Description": "The private key of the certificate in PEM format.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Key"
]
}
}
}
}