All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.cas20200630.models.CreateServerCertificateWithCsrRequest Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cas20200630.models;

import com.aliyun.tea.*;

public class CreateServerCertificateWithCsrRequest extends TeaModel {
    /**
     * 

The expiration time of the server certificate. This value is a UNIX timestamp. Unit: seconds.

*
*

> The **BeforeTime** and **AfterTime** parameters must be both empty or both specified.

*/ @NameInMap("AfterTime") public Long afterTime; /** *

The key algorithm of the server certificate. The key algorithm is in the `_` format. Valid values:

*
*

* **RSA\_1024**: The signature algorithm is Sha256WithRSA.

*

* **RSA\_2048**: The signature algorithm is Sha256WithRSA.

*

* **RSA\_4096**: The signature algorithm is Sha256WithRSA.

*

* **ECC\_256**: The signature algorithm is Sha256WithECDSA.

*

* **ECC\_384**: The signature algorithm is Sha256WithECDSA.

*

* **ECC\_512**: The signature algorithm is Sha256WithECDSA.

*

* **SM2\_256**: The signature algorithm is SM3WithSM2.

*
*

The encryption algorithm of the server certificate must be the same as the encryption algorithm of the intermediate CA certificate. The key length can be different. For example, if the key algorithm of the intermediate CA certificate is RSA\_2048, the key algorithm of the server certificate must be RSA\_1024, RSA\_2048, or RSA\_4096.

*
*

> You can call the [DescribeCACertificate](~~328096~~) operation to query the key algorithm of an intermediate CA certificate.

*/ @NameInMap("Algorithm") public String algorithm; /** *

The issuance time of the server certificate. This value is a UNIX timestamp. The default value is the time when you call this operation. Unit: seconds.

*
*

> The **BeforeTime** and **AfterTime** parameters must be both empty or both specified.

*/ @NameInMap("BeforeTime") public Long beforeTime; /** *

The common name of the certificate. The value can contain letters.

*
*

> If you specify the **CsrPemString** parameter, the value of the **CommonName** parameter is determined by the **CsrPemString** parameter.

*/ @NameInMap("CommonName") public String commonName; /** *

The code of the country in which the organization is located, such as **CN**.

*
*

> This parameter is available and required only when the **RegistrantProfileId** parameter is not specified. In this case, you must specify this parameter. If this parameter is not specified, the domain name fails to be registered.

*/ @NameInMap("Country") public String country; /** *

The content of the CSR file. You can generate a CSR file by using the OpenSSL tool or Keytool. For more information, see [How do I create a CSR file?](~~42218~~) You can also create a CSR file in the Certificate Management Service console. For more information, see [Create a CSR](~~313297~~).

*/ @NameInMap("Csr") public String csr; /** *

The content of the CSR file. You can generate a CSR file by using the OpenSSL tool or Keytool. For more information, see [How do I create a CSR file?](~~42218~~) You can also create a CSR file in the Certificate Management Service console. For more information, see [Create a CSR](~~313297~~).

*/ @NameInMap("Csr1") public String csr1; /** *

The validity period of the server certificate. Unit: days. You must specify at least one of the **Days**, **BeforeTime**, and **AfterTime** parameters. The **BeforeTime** and **AfterTime** parameters must be both empty or both specified. The following list describes how to specify these parameters:

*
*

* If you specify the **Days** parameter, you can specify both the **BeforeTime** and **AfterTime** parameters or leave them both empty.********

*

* If you do not specify the **Days** parameter, you must specify both the **BeforeTime** and **AfterTime** parameters.

*
*

>

*
*

* If you specify the **Days**, **BeforeTime**, and **AfterTime** parameters together, the validity period of the server certificate is determined by the value of the **Days** parameter.

*
*

* The validity period of the server certificate cannot exceed the validity period of the intermediate CA certificate. You can call the [DescribeCACertificate](~~328096~~) operation to query the validity period of an intermediate CA certificate.

*/ @NameInMap("Days") public Integer days; /** *

The additional domain names or additional IP addresses of the server certificate. After you add additional domain names and additional IP addresses to a certificate, you can apply the certificate to the domain names and IP addresses.

*
*

You can specify multiple domain names and IP addresses. If you specify multiple domain names and IP addresses, separate them with commas (,).

*/ @NameInMap("Domain") public String domain; /** *

Specifies whether to return the certificate. Valid values:

*
*

* **0**: does not return the certificate. This is the default value.

*

* **1**: returns the certificate.

*

* **2**: returns the certificate and the certificate chain of the certificate.

*/ @NameInMap("Immediately") public Integer immediately; /** *

The name of the city in which the organization is located. The value can contain letters. The default value is the name of the city in which the organization is located. The organization is associated with the intermediate CA certificate from which the certificate is issued.

*/ @NameInMap("Locality") public String locality; /** *

The validity period of the server certificate. Unit: months.

*/ @NameInMap("Months") public Integer months; /** *

The name of the organization. Default value: Alibaba Inc.

*/ @NameInMap("Organization") public String organization; /** *

The name of the department. Default value: Aliyun CDN.

*/ @NameInMap("OrganizationUnit") public String organizationUnit; /** *

The unique identifier of the intermediate CA certificate from which the server certificate is issued.

*
*

> You can call the [DescribeCACertificateList](~~328095~~) operation to query the unique identifier of an intermediate CA certificate.

*/ @NameInMap("ParentIdentifier") public String parentIdentifier; /** *

The province, municipality, or autonomous region in which the organization is located. The value can contain letters. The default value is the name of the province, municipality, or autonomous region in which the organization is located. The organization is associated with the intermediate CA certificate from which the certificate is issued.

*/ @NameInMap("State") public String state; /** *

The validity period of the server certificate. Unit: years.

*/ @NameInMap("Years") public Integer years; public static CreateServerCertificateWithCsrRequest build(java.util.Map map) throws Exception { CreateServerCertificateWithCsrRequest self = new CreateServerCertificateWithCsrRequest(); return TeaModel.build(map, self); } public CreateServerCertificateWithCsrRequest setAfterTime(Long afterTime) { this.afterTime = afterTime; return this; } public Long getAfterTime() { return this.afterTime; } public CreateServerCertificateWithCsrRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public CreateServerCertificateWithCsrRequest setBeforeTime(Long beforeTime) { this.beforeTime = beforeTime; return this; } public Long getBeforeTime() { return this.beforeTime; } public CreateServerCertificateWithCsrRequest setCommonName(String commonName) { this.commonName = commonName; return this; } public String getCommonName() { return this.commonName; } public CreateServerCertificateWithCsrRequest setCountry(String country) { this.country = country; return this; } public String getCountry() { return this.country; } public CreateServerCertificateWithCsrRequest setCsr(String csr) { this.csr = csr; return this; } public String getCsr() { return this.csr; } public CreateServerCertificateWithCsrRequest setCsr1(String csr1) { this.csr1 = csr1; return this; } public String getCsr1() { return this.csr1; } public CreateServerCertificateWithCsrRequest setDays(Integer days) { this.days = days; return this; } public Integer getDays() { return this.days; } public CreateServerCertificateWithCsrRequest setDomain(String domain) { this.domain = domain; return this; } public String getDomain() { return this.domain; } public CreateServerCertificateWithCsrRequest setImmediately(Integer immediately) { this.immediately = immediately; return this; } public Integer getImmediately() { return this.immediately; } public CreateServerCertificateWithCsrRequest setLocality(String locality) { this.locality = locality; return this; } public String getLocality() { return this.locality; } public CreateServerCertificateWithCsrRequest setMonths(Integer months) { this.months = months; return this; } public Integer getMonths() { return this.months; } public CreateServerCertificateWithCsrRequest setOrganization(String organization) { this.organization = organization; return this; } public String getOrganization() { return this.organization; } public CreateServerCertificateWithCsrRequest setOrganizationUnit(String organizationUnit) { this.organizationUnit = organizationUnit; return this; } public String getOrganizationUnit() { return this.organizationUnit; } public CreateServerCertificateWithCsrRequest setParentIdentifier(String parentIdentifier) { this.parentIdentifier = parentIdentifier; return this; } public String getParentIdentifier() { return this.parentIdentifier; } public CreateServerCertificateWithCsrRequest setState(String state) { this.state = state; return this; } public String getState() { return this.state; } public CreateServerCertificateWithCsrRequest setYears(Integer years) { this.years = years; return this; } public Integer getYears() { return this.years; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy