published on Sunday, May 10, 2026 by Pulumi
published on Sunday, May 10, 2026 by Pulumi
Provides a SSL Certificates Pca Certificate resource.
For information about SSL Certificates Pca Certificate and how to use it, see What is Pca Certificate.
NOTE: Available since v1.257.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.sslcertificatesservicepca.Certificate("default", {
organization: "a",
years: 1,
locality: "a",
organizationUnit: "a",
state: "a",
countryCode: "cn",
commonName: "cbc.certqa.cn",
algorithm: "RSA_2048",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.sslcertificatesservicepca.Certificate("default",
organization="a",
years=1,
locality="a",
organization_unit="a",
state="a",
country_code="cn",
common_name="cbc.certqa.cn",
algorithm="RSA_2048")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sslcertificatesservicepca"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sslcertificatesservicepca.NewCertificate(ctx, "default", &sslcertificatesservicepca.CertificateArgs{
Organization: pulumi.String("a"),
Years: pulumi.Int(1),
Locality: pulumi.String("a"),
OrganizationUnit: pulumi.String("a"),
State: pulumi.String("a"),
CountryCode: pulumi.String("cn"),
CommonName: pulumi.String("cbc.certqa.cn"),
Algorithm: pulumi.String("RSA_2048"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.SslCertificatesServicePca.Certificate("default", new()
{
Organization = "a",
Years = 1,
Locality = "a",
OrganizationUnit = "a",
State = "a",
CountryCode = "cn",
CommonName = "cbc.certqa.cn",
Algorithm = "RSA_2048",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sslcertificatesservicepca.Certificate;
import com.pulumi.alicloud.sslcertificatesservicepca.CertificateArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Certificate("default", CertificateArgs.builder()
.organization("a")
.years(1)
.locality("a")
.organizationUnit("a")
.state("a")
.countryCode("cn")
.commonName("cbc.certqa.cn")
.algorithm("RSA_2048")
.build());
}
}
resources:
default:
type: alicloud:sslcertificatesservicepca:Certificate
properties:
organization: a
years: '1'
locality: a
organizationUnit: a
state: a
countryCode: cn
commonName: cbc.certqa.cn
algorithm: RSA_2048
Example coming soon!
π Need more examples? VIEW MORE EXAMPLES
Create PcaCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PcaCertificate(name: string, args: PcaCertificateArgs, opts?: CustomResourceOptions);@overload
def PcaCertificate(resource_name: str,
args: PcaCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PcaCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
alias_name: Optional[str] = None,
certificate_type: Optional[str] = None,
common_name: Optional[str] = None,
country_code: Optional[str] = None,
crl_day: Optional[int] = None,
enable_crl: Optional[bool] = None,
extended_key_usages: Optional[Sequence[str]] = None,
locality: Optional[str] = None,
organization: Optional[str] = None,
organization_unit: Optional[str] = None,
parent_identifier: Optional[str] = None,
path_len_constraint: Optional[int] = None,
resource_group_id: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
years: Optional[int] = None)func NewPcaCertificate(ctx *Context, name string, args PcaCertificateArgs, opts ...ResourceOption) (*PcaCertificate, error)public PcaCertificate(string name, PcaCertificateArgs args, CustomResourceOptions? opts = null)
public PcaCertificate(String name, PcaCertificateArgs args)
public PcaCertificate(String name, PcaCertificateArgs args, CustomResourceOptions options)
type: alicloud:sslcertificatesservice:PcaCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_sslcertificatesservice_pcacertificate" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PcaCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PcaCertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PcaCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PcaCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PcaCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PcaCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PcaCertificate resource accepts the following input properties:
- Common
Name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- Locality string
- The name of the city where the organization is located.
- Organization string
- The name of the organization associated with the CA certificate.
- Organization
Unit string - The name of the department or branch within the organization
- State string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- Years int
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- Algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- Alias
Name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- Certificate
Type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- Country
Code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - Crl
Day int - The interval (in days) for updating the Certificate Revocation List (CRL).
- Enable
Crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Extended
Key List<string>Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Parent
Identifier string - Parent node identifier.
- Path
Len intConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Resource
Group stringId - A resource property field representing the resource group.
- Dictionary<string, string>
- Tags
- Common
Name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- Locality string
- The name of the city where the organization is located.
- Organization string
- The name of the organization associated with the CA certificate.
- Organization
Unit string - The name of the department or branch within the organization
- State string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- Years int
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- Algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- Alias
Name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- Certificate
Type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- Country
Code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - Crl
Day int - The interval (in days) for updating the Certificate Revocation List (CRL).
- Enable
Crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Extended
Key []stringUsages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Parent
Identifier string - Parent node identifier.
- Path
Len intConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Resource
Group stringId - A resource property field representing the resource group.
- map[string]string
- Tags
- common_
name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- locality string
- The name of the city where the organization is located.
- organization string
- The name of the organization associated with the CA certificate.
- organization_
unit string - The name of the department or branch within the organization
- state string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- years number
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias_
name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate_
type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- country_
code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl_
day number - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable_
crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended_
key_ list(string)usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- parent_
identifier string - Parent node identifier.
- path_
len_ numberconstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource_
group_ stringid - A resource property field representing the resource group.
- map(string)
- Tags
- common
Name String - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- locality String
- The name of the city where the organization is located.
- organization String
- The name of the organization associated with the CA certificate.
- organization
Unit String - The name of the department or branch within the organization
- state String
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- years Integer
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm String
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias
Name String A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate
Type String - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- country
Code String - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl
Day Integer - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable
Crl Boolean Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended
Key List<String>Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- parent
Identifier String - Parent node identifier.
- path
Len IntegerConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource
Group StringId - A resource property field representing the resource group.
- Map<String,String>
- Tags
- common
Name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- locality string
- The name of the city where the organization is located.
- organization string
- The name of the organization associated with the CA certificate.
- organization
Unit string - The name of the department or branch within the organization
- state string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- years number
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias
Name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate
Type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- country
Code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl
Day number - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable
Crl boolean Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended
Key string[]Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- parent
Identifier string - Parent node identifier.
- path
Len numberConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource
Group stringId - A resource property field representing the resource group.
- {[key: string]: string}
- Tags
- common_
name str - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- locality str
- The name of the city where the organization is located.
- organization str
- The name of the organization associated with the CA certificate.
- organization_
unit str - The name of the department or branch within the organization
- state str
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- years int
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm str
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias_
name str A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate_
type str - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- country_
code str - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl_
day int - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable_
crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended_
key_ Sequence[str]usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- parent_
identifier str - Parent node identifier.
- path_
len_ intconstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource_
group_ strid - A resource property field representing the resource group.
- Mapping[str, str]
- Tags
- common
Name String - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- locality String
- The name of the city where the organization is located.
- organization String
- The name of the organization associated with the CA certificate.
- organization
Unit String - The name of the department or branch within the organization
- state String
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- years Number
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm String
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias
Name String A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate
Type String - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- country
Code String - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl
Day Number - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable
Crl Boolean Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended
Key List<String>Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- parent
Identifier String - Parent node identifier.
- path
Len NumberConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource
Group StringId - A resource property field representing the resource group.
- Map<String>
- Tags
Outputs
All input properties are implicitly available as output properties. Additionally, the PcaCertificate resource produces the following output properties:
Look up Existing PcaCertificate Resource
Get an existing PcaCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PcaCertificateState, opts?: CustomResourceOptions): PcaCertificate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
alias_name: Optional[str] = None,
certificate_type: Optional[str] = None,
common_name: Optional[str] = None,
country_code: Optional[str] = None,
crl_day: Optional[int] = None,
enable_crl: Optional[bool] = None,
extended_key_usages: Optional[Sequence[str]] = None,
locality: Optional[str] = None,
organization: Optional[str] = None,
organization_unit: Optional[str] = None,
parent_identifier: Optional[str] = None,
path_len_constraint: Optional[int] = None,
resource_group_id: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
years: Optional[int] = None) -> PcaCertificatefunc GetPcaCertificate(ctx *Context, name string, id IDInput, state *PcaCertificateState, opts ...ResourceOption) (*PcaCertificate, error)public static PcaCertificate Get(string name, Input<string> id, PcaCertificateState? state, CustomResourceOptions? opts = null)public static PcaCertificate get(String name, Output<String> id, PcaCertificateState state, CustomResourceOptions options)resources: _: type: alicloud:sslcertificatesservice:PcaCertificate get: id: ${id}import {
to = alicloud_sslcertificatesservice_pcacertificate.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- Alias
Name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- Certificate
Type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- Common
Name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- Country
Code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - Crl
Day int - The interval (in days) for updating the Certificate Revocation List (CRL).
- Enable
Crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Extended
Key List<string>Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Locality string
- The name of the city where the organization is located.
- Organization string
- The name of the organization associated with the CA certificate.
- Organization
Unit string - The name of the department or branch within the organization
- Parent
Identifier string - Parent node identifier.
- Path
Len intConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Resource
Group stringId - A resource property field representing the resource group.
- State string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- Status string
- The current CA status.
- Dictionary<string, string>
- Tags
- Years int
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- Algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- Alias
Name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- Certificate
Type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- Common
Name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- Country
Code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - Crl
Day int - The interval (in days) for updating the Certificate Revocation List (CRL).
- Enable
Crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Extended
Key []stringUsages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Locality string
- The name of the city where the organization is located.
- Organization string
- The name of the organization associated with the CA certificate.
- Organization
Unit string - The name of the department or branch within the organization
- Parent
Identifier string - Parent node identifier.
- Path
Len intConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- Resource
Group stringId - A resource property field representing the resource group.
- State string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- Status string
- The current CA status.
- map[string]string
- Tags
- Years int
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias_
name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate_
type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- common_
name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- country_
code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl_
day number - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable_
crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended_
key_ list(string)usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- locality string
- The name of the city where the organization is located.
- organization string
- The name of the organization associated with the CA certificate.
- organization_
unit string - The name of the department or branch within the organization
- parent_
identifier string - Parent node identifier.
- path_
len_ numberconstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource_
group_ stringid - A resource property field representing the resource group.
- state string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- status string
- The current CA status.
- map(string)
- Tags
- years number
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm String
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias
Name String A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate
Type String - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- common
Name String - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- country
Code String - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl
Day Integer - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable
Crl Boolean Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended
Key List<String>Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- locality String
- The name of the city where the organization is located.
- organization String
- The name of the organization associated with the CA certificate.
- organization
Unit String - The name of the department or branch within the organization
- parent
Identifier String - Parent node identifier.
- path
Len IntegerConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource
Group StringId - A resource property field representing the resource group.
- state String
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- status String
- The current CA status.
- Map<String,String>
- Tags
- years Integer
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm string
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias
Name string A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate
Type string - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- common
Name string - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- country
Code string - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl
Day number - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable
Crl boolean Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended
Key string[]Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- locality string
- The name of the city where the organization is located.
- organization string
- The name of the organization associated with the CA certificate.
- organization
Unit string - The name of the department or branch within the organization
- parent
Identifier string - Parent node identifier.
- path
Len numberConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource
Group stringId - A resource property field representing the resource group.
- state string
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- status string
- The current CA status.
- {[key: string]: string}
- Tags
- years number
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm str
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias_
name str A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate_
type str - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- common_
name str - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- country_
code str - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl_
day int - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable_
crl bool Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended_
key_ Sequence[str]usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- locality str
- The name of the city where the organization is located.
- organization str
- The name of the organization associated with the CA certificate.
- organization_
unit str - The name of the department or branch within the organization
- parent_
identifier str - Parent node identifier.
- path_
len_ intconstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource_
group_ strid - A resource property field representing the resource group.
- state str
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- status str
- The current CA status.
- Mapping[str, str]
- Tags
- years int
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
- algorithm String
The key algorithm type of the root CA certificate. The key algorithm is expressed in the format
_. Valid values:RSA_1024: Corresponds to the signature algorithm Sha256WithRSA.RSA_2048: Corresponds to the signature algorithm Sha256WithRSA.RSA_4096: Corresponds to the signature algorithm Sha256WithRSA.ECC_256: Corresponds to the signature algorithm Sha256WithECDSA.ECC_384: Corresponds to the signature algorithm Sha256WithECDSA.ECC_512: Corresponds to the signature algorithm Sha256WithECDSA.SM2_256: Corresponds to the signature algorithm SM3WithSM2.
The encryption algorithm of the root CA certificate must match the certificate algorithm of the private root CA you purchased. For example, if you selected
RSAas the certificate algorithm when purchasing the private root CA, the key algorithm of the root CA certificate must beRSA_1024,RSA_2048, orRSA_4096.NOTE: If
certificateTypeis set toSUB_ROOT,algorithmis required.- alias
Name String A custom alias for the certificate, used to define a user-friendly name.
NOTE: This parameter only applies during resource creation, update. If modified in isolation without other property changes, Terraform will not trigger any action.
- certificate
Type String - The type of the CA certificate. Default value:
ROOT. Valid values:ROOT: A root CA certificate.SUB_ROOT: A subordinate CA certificate.
- common
Name String - The common name or short name of the organization. Chinese characters, English letters, and other characters are supported.
- country
Code String - The two-letter uppercase alphabetic code representing the country or region where the organization is located. For example,
CNrepresents China andUSrepresents the United States. For country codes, see the International Codes section in Managing Company Information. - crl
Day Number - The interval (in days) for updating the Certificate Revocation List (CRL).
- enable
Crl Boolean Specifies whether to enable CRL.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- extended
Key List<String>Usages Extended attributes of the certificate, used to define extended key usages.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- locality String
- The name of the city where the organization is located.
- organization String
- The name of the organization associated with the CA certificate.
- organization
Unit String - The name of the department or branch within the organization
- parent
Identifier String - Parent node identifier.
- path
Len NumberConstraint The maximum depth of subordinate CA levels allowed under this CA.
NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.
- resource
Group StringId - A resource property field representing the resource group.
- state String
- The name of the province, municipality directly under the central government, or autonomous region where the organization is located
- status String
- The current CA status.
- Map<String>
- Tags
- years Number
The validity period of the root CA certificate, in years.
NOTE: We recommend setting it to 5β10 years.
Import
SSL Certificates Pca Certificate can be imported using the id, e.g.
$ pulumi import alicloud:sslcertificatesservice/pcaCertificate:PcaCertificate example <identifier>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Sunday, May 10, 2026 by Pulumi
