Skip to content

PcaCertificateProps

Properties for defining a PcaCertificate.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cas-pcacertificate

Initializer

import com.aliyun.ros.cdk.cas.PcaCertificateProps;
PcaCertificateProps.builder()
    .commonName(java.lang.String)
    .commonName(IResolvable)
    .locality(java.lang.String)
    .locality(IResolvable)
    .organization(java.lang.String)
    .organization(IResolvable)
    .organizationUnit(java.lang.String)
    .organizationUnit(IResolvable)
    .state(java.lang.String)
    .state(IResolvable)
    .years(java.lang.Number)
    .years(IResolvable)
//  .algorithm(java.lang.String)
//  .algorithm(IResolvable)
//  .caStatus(java.lang.String)
//  .caStatus(IResolvable)
//  .countryCode(java.lang.String)
//  .countryCode(IResolvable)
    .build();

Properties

Name Type Description
commonName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property commonName: The common name or abbreviation of the organization.
locality java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property locality: Name of the city where the organization is located.
organization java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property organization: The name of the organization (corresponding to your enterprise or company) associated with the root CA certificate.
organizationUnit java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property organizationUnit: The name of the department or branch under the organization.
state java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property state: The name of the province, municipality, or autonomous region in which the organization is located.
years java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property years: The validity period of the root CA certificate, in years.
algorithm java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property algorithm: The key algorithm type of the root CA certificate.
caStatus java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property caStatus: The current CA status.
countryCode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property countryCode: The code of the country or region in which the organization is located, using a two-digit capital abbreviation.

commonNameRequired

public java.lang.Object getCommonName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property commonName: The common name or abbreviation of the organization.

Support the use of Chinese, English characters.


localityRequired

public java.lang.Object getLocality();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property locality: Name of the city where the organization is located.

Support the use of Chinese, English characters.


organizationRequired

public java.lang.Object getOrganization();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property organization: The name of the organization (corresponding to your enterprise or company) associated with the root CA certificate.

Support the use of Chinese, English characters.


organizationUnitRequired

public java.lang.Object getOrganizationUnit();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property organizationUnit: The name of the department or branch under the organization.

Support the use of Chinese, English characters.


stateRequired

public java.lang.Object getState();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property state: The name of the province, municipality, or autonomous region in which the organization is located.

Support the use of Chinese, English characters. Name of the province or state where the organization is located. Support the use of Chinese, English characters. .


yearsRequired

public java.lang.Object getYears();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property years: The validity period of the root CA certificate, in years.

It is recommended to set to 5~10 years.


algorithmOptional

public java.lang.Object getAlgorithm();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property algorithm: The key algorithm type of the root CA certificate.

The key algorithm is expressed using the '_< key length>' format. Value:

  • RSA_1024: The corresponding signature algorithm is Sha256WithRSA.
  • RSA_2048: The corresponding signature algorithm is Sha256WithRSA.
  • RSA_4096: The corresponding signature algorithm is Sha256WithRSA.
  • ECC_256: The signature algorithm is Sha256WithECDSA.
  • ECC_384: The corresponding signature algorithm is Sha256WithECDSA.
  • ECC_512: The signature algorithm is Sha256WithECDSA.
  • SM2_256: The corresponding signature algorithm is SM3WithSM2.

The encryption algorithm of the root CA certificate must be the same as the certificate algorithm of the private Root CA you purchased. Example: If the certificate algorithm selected when you purchase a private Root CA is RSA, the key algorithm of the root CA certificate must be RSA_1024, RSA_2048, or RSA_4096.


caStatusOptional

public java.lang.Object getCaStatus();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property caStatus: The current CA status.

Value:

  • Issue: Enabled.
  • Forbidden: Disabled.
  • Revoke: Revoked.

countryCodeOptional

public java.lang.Object getCountryCode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property countryCode: The code of the country or region in which the organization is located, using a two-digit capital abbreviation.

For example, CN represents China and US represents the United States. For more information about the codes of different countries, see International Code in Management Company Information.