client

package
v1.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file is auto-generated, don't edit it. Thanks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) CreateClientCertificate

func (client *Client) CreateClientCertificate(request *CreateClientCertificateRequest) (_result *CreateClientCertificateResponse, _err error)

Summary:

Issues a client certificate by using a system-generated certificate signing request (CSR) file.

Description:

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](~~CreateRootCACertificate~~) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](~~CreateRootCACertificate~~) operation. Only intermediate CA certificates can issue client certificates.

## QPS limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateClientCertificateRequest

@return CreateClientCertificateResponse

func (*Client) CreateClientCertificateWithCsr

func (client *Client) CreateClientCertificateWithCsr(request *CreateClientCertificateWithCsrRequest) (_result *CreateClientCertificateWithCsrResponse, _err error)

Summary:

Issues a client certificate by using a custom certificate signing request (CSR) file.

Description:

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](https://help.aliyun.com/document_detail/328093.html) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](https://help.aliyun.com/document_detail/328094.html) operation. Only intermediate CA certificates can be used to issue client certificates.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateClientCertificateWithCsrRequest

@return CreateClientCertificateWithCsrResponse

func (*Client) CreateClientCertificateWithCsrWithOptions

func (client *Client) CreateClientCertificateWithCsrWithOptions(request *CreateClientCertificateWithCsrRequest, runtime *util.RuntimeOptions) (_result *CreateClientCertificateWithCsrResponse, _err error)

Summary:

Issues a client certificate by using a custom certificate signing request (CSR) file.

Description:

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](https://help.aliyun.com/document_detail/328093.html) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](https://help.aliyun.com/document_detail/328094.html) operation. Only intermediate CA certificates can be used to issue client certificates.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateClientCertificateWithCsrRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateClientCertificateWithCsrResponse

func (*Client) CreateClientCertificateWithOptions

func (client *Client) CreateClientCertificateWithOptions(request *CreateClientCertificateRequest, runtime *util.RuntimeOptions) (_result *CreateClientCertificateResponse, _err error)

Summary:

Issues a client certificate by using a system-generated certificate signing request (CSR) file.

Description:

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](~~CreateRootCACertificate~~) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](~~CreateRootCACertificate~~) operation. Only intermediate CA certificates can issue client certificates.

## QPS limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateClientCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateClientCertificateResponse

func (*Client) CreateCustomCertificate added in v1.0.15

func (client *Client) CreateCustomCertificate(request *CreateCustomCertificateRequest) (_result *CreateCustomCertificateResponse, _err error)

Summary:

Issues a certificate based on the specified key usage, extended key usage, and name and alias of the entity that uses the certificate.

Description:

By default, the name of the entity is obtained from the certificate signing request (CSR) of the certificate that you want to issue. If you specify a different name for the entity, the name of the entity in the CSR becomes invalid. The specified name is used to issue the certificate.

You must specify the key usage and extended key usage based on the certificate type. The following list describes common certificate types:

  • Server certificate

Key usage: digitalSignature or keyEncipherment

Extended key usage: serverAuth

  • Client certificate

Key usage: digitalSignature or keyEncipherment

Extended key usage: clientAuth

  • Mutual Transport Layer Security (TLS) authentication certificate

Key usage: digitalSignature or keyEncipherment

Extended key usage: serverAuth or clientAuth

  • Email certificate

Key usage: digitalSignature or contentCommitment

Extended key usage: emailProtection

Note: Compliant certificate authorities (CAs) are managed by third-party authorities. This operation is not supported for compliant CAs.

@param request - CreateCustomCertificateRequest

@return CreateCustomCertificateResponse

func (*Client) CreateCustomCertificateWithOptions added in v1.0.15

func (client *Client) CreateCustomCertificateWithOptions(request *CreateCustomCertificateRequest, runtime *util.RuntimeOptions) (_result *CreateCustomCertificateResponse, _err error)

Summary:

Issues a certificate based on the specified key usage, extended key usage, and name and alias of the entity that uses the certificate.

Description:

By default, the name of the entity is obtained from the certificate signing request (CSR) of the certificate that you want to issue. If you specify a different name for the entity, the name of the entity in the CSR becomes invalid. The specified name is used to issue the certificate.

You must specify the key usage and extended key usage based on the certificate type. The following list describes common certificate types:

  • Server certificate

Key usage: digitalSignature or keyEncipherment

Extended key usage: serverAuth

  • Client certificate

Key usage: digitalSignature or keyEncipherment

Extended key usage: clientAuth

  • Mutual Transport Layer Security (TLS) authentication certificate

Key usage: digitalSignature or keyEncipherment

Extended key usage: serverAuth or clientAuth

  • Email certificate

Key usage: digitalSignature or contentCommitment

Extended key usage: emailProtection

Note: Compliant certificate authorities (CAs) are managed by third-party authorities. This operation is not supported for compliant CAs.

@param request - CreateCustomCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateCustomCertificateResponse

func (*Client) CreateRevokeClientCertificate

func (client *Client) CreateRevokeClientCertificate(request *CreateRevokeClientCertificateRequest) (_result *CreateRevokeClientCertificateResponse, _err error)

Summary:

Revokes a client certificate or a server certificate.

Description:

After a client certificate or a server certificate is revoked, the client or the server on which the certificate is installed cannot establish HTTPS connections with other devices.

After a client certificate or a server certificate is revoked, you can call the [DeleteClientCertificate](https://help.aliyun.com/document_detail/330880.html) operation to permanently delete the certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateRevokeClientCertificateRequest

@return CreateRevokeClientCertificateResponse

func (*Client) CreateRevokeClientCertificateWithOptions

func (client *Client) CreateRevokeClientCertificateWithOptions(request *CreateRevokeClientCertificateRequest, runtime *util.RuntimeOptions) (_result *CreateRevokeClientCertificateResponse, _err error)

Summary:

Revokes a client certificate or a server certificate.

Description:

After a client certificate or a server certificate is revoked, the client or the server on which the certificate is installed cannot establish HTTPS connections with other devices.

After a client certificate or a server certificate is revoked, you can call the [DeleteClientCertificate](https://help.aliyun.com/document_detail/330880.html) operation to permanently delete the certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateRevokeClientCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateRevokeClientCertificateResponse

func (*Client) CreateRootCACertificate

func (client *Client) CreateRootCACertificate(request *CreateRootCACertificateRequest) (_result *CreateRootCACertificateResponse, _err error)

Summary:

Creates a root certificate authority (CA) certificate.

Description:

You can call the CreateRootCACertificate operation to create a self-signed root CA certificate. A root CA certificate is the trust anchor in a chain of trust for private certificates that are used within an enterprise. You must create a root CA certificate before you can use the root CA certificate to issue intermediate CA certificates. Then, you can use the intermediate CA certificates to issue client certificates and server certificates.

Before you call this operation, make sure that you have purchased a private root CA instance by using the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Create a private CA](https://help.aliyun.com/document_detail/208553.html).

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateRootCACertificateRequest

@return CreateRootCACertificateResponse

func (*Client) CreateRootCACertificateWithOptions

func (client *Client) CreateRootCACertificateWithOptions(request *CreateRootCACertificateRequest, runtime *util.RuntimeOptions) (_result *CreateRootCACertificateResponse, _err error)

Summary:

Creates a root certificate authority (CA) certificate.

Description:

You can call the CreateRootCACertificate operation to create a self-signed root CA certificate. A root CA certificate is the trust anchor in a chain of trust for private certificates that are used within an enterprise. You must create a root CA certificate before you can use the root CA certificate to issue intermediate CA certificates. Then, you can use the intermediate CA certificates to issue client certificates and server certificates.

Before you call this operation, make sure that you have purchased a private root CA instance by using the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Create a private CA](https://help.aliyun.com/document_detail/208553.html).

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateRootCACertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateRootCACertificateResponse

func (*Client) CreateServerCertificate

func (client *Client) CreateServerCertificate(request *CreateServerCertificateRequest) (_result *CreateServerCertificateResponse, _err error)

Summary:

Issues a server certificate by using a system-generated certificate signing request (CSR) file.

Description:

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](https://help.aliyun.com/document_detail/328093.html) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](https://help.aliyun.com/document_detail/328094.html) operation. Only intermediate CA certificates can be used to issue server certificates.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateServerCertificateRequest

@return CreateServerCertificateResponse

func (*Client) CreateServerCertificateWithCsr

func (client *Client) CreateServerCertificateWithCsr(request *CreateServerCertificateWithCsrRequest) (_result *CreateServerCertificateWithCsrResponse, _err error)

Summary:

Issues a server certificate by using a custom certificate signing request (CSR) file.

Description:

## Usage notes

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](https://help.aliyun.com/document_detail/328093.html) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](https://help.aliyun.com/document_detail/328094.html) operation. Only intermediate CA certificates can be used to issue server certificates.

@param request - CreateServerCertificateWithCsrRequest

@return CreateServerCertificateWithCsrResponse

func (*Client) CreateServerCertificateWithCsrWithOptions

func (client *Client) CreateServerCertificateWithCsrWithOptions(request *CreateServerCertificateWithCsrRequest, runtime *util.RuntimeOptions) (_result *CreateServerCertificateWithCsrResponse, _err error)

Summary:

Issues a server certificate by using a custom certificate signing request (CSR) file.

Description:

## Usage notes

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](https://help.aliyun.com/document_detail/328093.html) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](https://help.aliyun.com/document_detail/328094.html) operation. Only intermediate CA certificates can be used to issue server certificates.

@param request - CreateServerCertificateWithCsrRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateServerCertificateWithCsrResponse

func (*Client) CreateServerCertificateWithOptions

func (client *Client) CreateServerCertificateWithOptions(request *CreateServerCertificateRequest, runtime *util.RuntimeOptions) (_result *CreateServerCertificateResponse, _err error)

Summary:

Issues a server certificate by using a system-generated certificate signing request (CSR) file.

Description:

Before you call this operation, make sure that you have created a root certificate authority (CA) certificate by calling the [CreateRootCACertificate](https://help.aliyun.com/document_detail/328093.html) operation and an intermediate CA certificate by calling the [CreateSubCACertificate](https://help.aliyun.com/document_detail/328094.html) operation. Only intermediate CA certificates can be used to issue server certificates.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateServerCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateServerCertificateResponse

func (*Client) CreateSubCACertificate

func (client *Client) CreateSubCACertificate(request *CreateSubCACertificateRequest) (_result *CreateSubCACertificateResponse, _err error)

Summary:

Creates an intermediate certificate authority (CA) certificate.

Description:

You can call this operation to issue an intermediate certificate authority (CA) certificate by using an existing root CA certificate. Intermediate CA certificates can be used to issue client certificates and server certificates.

Before you call this operation, make sure that you have issued a root CA certificate by calling the [CreateRootCACertificate] operation.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateSubCACertificateRequest

@return CreateSubCACertificateResponse

func (*Client) CreateSubCACertificateWithOptions

func (client *Client) CreateSubCACertificateWithOptions(request *CreateSubCACertificateRequest, runtime *util.RuntimeOptions) (_result *CreateSubCACertificateResponse, _err error)

Summary:

Creates an intermediate certificate authority (CA) certificate.

Description:

You can call this operation to issue an intermediate certificate authority (CA) certificate by using an existing root CA certificate. Intermediate CA certificates can be used to issue client certificates and server certificates.

Before you call this operation, make sure that you have issued a root CA certificate by calling the [CreateRootCACertificate] operation.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - CreateSubCACertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateSubCACertificateResponse

func (*Client) DeleteClientCertificate

func (client *Client) DeleteClientCertificate(request *DeleteClientCertificateRequest) (_result *DeleteClientCertificateResponse, _err error)

Summary:

Deletes a client certificate or a server certificate that is revoked.

Description:

Before you call this operation, you must call the [CreateRevokeClientCertificate](https://help.aliyun.com/document_detail/330876.html) operation to revoke a client certificate or a server certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DeleteClientCertificateRequest

@return DeleteClientCertificateResponse

func (*Client) DeleteClientCertificateWithOptions

func (client *Client) DeleteClientCertificateWithOptions(request *DeleteClientCertificateRequest, runtime *util.RuntimeOptions) (_result *DeleteClientCertificateResponse, _err error)

Summary:

Deletes a client certificate or a server certificate that is revoked.

Description:

Before you call this operation, you must call the [CreateRevokeClientCertificate](https://help.aliyun.com/document_detail/330876.html) operation to revoke a client certificate or a server certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DeleteClientCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteClientCertificateResponse

func (*Client) DescribeCACertificate

func (client *Client) DescribeCACertificate(request *DescribeCACertificateRequest) (_result *DescribeCACertificateResponse, _err error)

Summary:

Queries the details about a root certificate authority (CA) certificate or an intermediate CA certificate.

Description:

You can call the DescribeCACertificate operation to query the details about a root CA certificate or an intermediate CA certificate by using the unique identifier of the root CA certificate or intermediate CA certificate. The details include the serial number, user information, and content of a CA certificate.

Before you call this operation, make sure that you have created a root CA by calling the [CreateRootCACertificate] operation or an intermediate CA certificate by calling the [CreateSubCACertificate] operation.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCACertificateRequest

@return DescribeCACertificateResponse

func (*Client) DescribeCACertificateCount

func (client *Client) DescribeCACertificateCount() (_result *DescribeCACertificateCountResponse, _err error)

Summary:

Queries the number of certificate authority (CA) certificates that you create.

Description:

You can call the DescribeCACertificateCount operation to query the number of created CA certificates, which includes root CA certificates and intermediate CA certificates.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@return DescribeCACertificateCountResponse

func (*Client) DescribeCACertificateCountWithOptions

func (client *Client) DescribeCACertificateCountWithOptions(runtime *util.RuntimeOptions) (_result *DescribeCACertificateCountResponse, _err error)

Summary:

Queries the number of certificate authority (CA) certificates that you create.

Description:

You can call the DescribeCACertificateCount operation to query the number of created CA certificates, which includes root CA certificates and intermediate CA certificates.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCACertificateCountRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeCACertificateCountResponse

func (*Client) DescribeCACertificateList

func (client *Client) DescribeCACertificateList(request *DescribeCACertificateListRequest) (_result *DescribeCACertificateListResponse, _err error)

Summary:

Queries the details about all root certificate authority (CA) certificates and intermediate CA certificates.

Description:

You can call the DescribeCACertificateList operation to perform a paged query of the details about all CA certificates that you create. The details include the unique identifier, serial number, user information, and content of each root CA certificate or intermediate CA certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCACertificateListRequest

@return DescribeCACertificateListResponse

func (*Client) DescribeCACertificateListWithOptions

func (client *Client) DescribeCACertificateListWithOptions(request *DescribeCACertificateListRequest, runtime *util.RuntimeOptions) (_result *DescribeCACertificateListResponse, _err error)

Summary:

Queries the details about all root certificate authority (CA) certificates and intermediate CA certificates.

Description:

You can call the DescribeCACertificateList operation to perform a paged query of the details about all CA certificates that you create. The details include the unique identifier, serial number, user information, and content of each root CA certificate or intermediate CA certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCACertificateListRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeCACertificateListResponse

func (*Client) DescribeCACertificateWithOptions

func (client *Client) DescribeCACertificateWithOptions(request *DescribeCACertificateRequest, runtime *util.RuntimeOptions) (_result *DescribeCACertificateResponse, _err error)

Summary:

Queries the details about a root certificate authority (CA) certificate or an intermediate CA certificate.

Description:

You can call the DescribeCACertificate operation to query the details about a root CA certificate or an intermediate CA certificate by using the unique identifier of the root CA certificate or intermediate CA certificate. The details include the serial number, user information, and content of a CA certificate.

Before you call this operation, make sure that you have created a root CA by calling the [CreateRootCACertificate] operation or an intermediate CA certificate by calling the [CreateSubCACertificate] operation.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCACertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeCACertificateResponse

func (*Client) DescribeCertificatePrivateKey

func (client *Client) DescribeCertificatePrivateKey(request *DescribeCertificatePrivateKeyRequest) (_result *DescribeCertificatePrivateKeyResponse, _err error)

Summary:

Queries the encrypted private key of a client certificate or a server certificate.

Description:

## Usage notes

You can call the DescribeCertificatePrivateKey operation to obtain the encrypted private key of a client certificate or a server certificate. The certificate is issued based on a system-generated certificate signing request (CSR). Before you call this operation, make sure that you have issued a client certificate or a server certificate by calling the following operation:

To ensure the security of private key transmission, the DescribeCertificatePrivateKey operation encrypts the private key by using the private key password that you specify and returns the encrypted private key. The private key password is a string that is used to encrypt the private key. After you obtain the encrypted private key of the certificate, you can use the following methods to decrypt the private key:

  • If the encryption algorithm of the certificate is RSA, you must run the `openssl rsa -in <Encrypted private key file> -passin pass:<Private key password> -out <Decrypted private key file>` command in the computer on which [OpenSSL](https://www.openssl.org/source/) or [BabaSSL](https://github.com/BabaSSL/BabaSSL) is installed.

  • If the encryption algorithm of the certificate is ECC, you must run the `openssl ec -in <Encrypted private key file> -passin pass:<Private key password> -out <Decrypted private key file>` command in the computer on which [OpenSSL](https://www.openssl.org/source/) or [BabaSSL](https://github.com/BabaSSL/BabaSSL) is installed.

  • If the encryption algorithm of the certificate is SM2, you must run the `openssl ec -in <Encrypted private key file> -passin pass:<Private key password> -out <Decrypted private key file>` command in the computer on which [BabaSSL](https://github.com/BabaSSL/BabaSSL) is installed.

> You can call the [DescribeClientCertificate] operation to query the encryption algorithm type of a client certificate or a server certificate.

## Limits

You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCertificatePrivateKeyRequest

@return DescribeCertificatePrivateKeyResponse

func (*Client) DescribeCertificatePrivateKeyWithOptions

func (client *Client) DescribeCertificatePrivateKeyWithOptions(request *DescribeCertificatePrivateKeyRequest, runtime *util.RuntimeOptions) (_result *DescribeCertificatePrivateKeyResponse, _err error)

Summary:

Queries the encrypted private key of a client certificate or a server certificate.

Description:

## Usage notes

You can call the DescribeCertificatePrivateKey operation to obtain the encrypted private key of a client certificate or a server certificate. The certificate is issued based on a system-generated certificate signing request (CSR). Before you call this operation, make sure that you have issued a client certificate or a server certificate by calling the following operation:

To ensure the security of private key transmission, the DescribeCertificatePrivateKey operation encrypts the private key by using the private key password that you specify and returns the encrypted private key. The private key password is a string that is used to encrypt the private key. After you obtain the encrypted private key of the certificate, you can use the following methods to decrypt the private key:

  • If the encryption algorithm of the certificate is RSA, you must run the `openssl rsa -in <Encrypted private key file> -passin pass:<Private key password> -out <Decrypted private key file>` command in the computer on which [OpenSSL](https://www.openssl.org/source/) or [BabaSSL](https://github.com/BabaSSL/BabaSSL) is installed.

  • If the encryption algorithm of the certificate is ECC, you must run the `openssl ec -in <Encrypted private key file> -passin pass:<Private key password> -out <Decrypted private key file>` command in the computer on which [OpenSSL](https://www.openssl.org/source/) or [BabaSSL](https://github.com/BabaSSL/BabaSSL) is installed.

  • If the encryption algorithm of the certificate is SM2, you must run the `openssl ec -in <Encrypted private key file> -passin pass:<Private key password> -out <Decrypted private key file>` command in the computer on which [BabaSSL](https://github.com/BabaSSL/BabaSSL) is installed.

> You can call the [DescribeClientCertificate] operation to query the encryption algorithm type of a client certificate or a server certificate.

## Limits

You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeCertificatePrivateKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeCertificatePrivateKeyResponse

func (*Client) DescribeClientCertificate

func (client *Client) DescribeClientCertificate(request *DescribeClientCertificateRequest) (_result *DescribeClientCertificateResponse, _err error)

Summary:

Queries the details about a client certificate or a server certificate by using the unique identifier of the certificate.

Description:

You can call the DescribeClientCertificate operation to query the details about a client certificate or a server certificate by using the unique identifier of the certificate. The details include the serial number, user information, content, and status of each certificate.

Before you call this operation, make sure that you have created a client certificate or a server certificate.

For more information about how to call an operation to create a client certificate, see the following topics:

For more information about how to call an operation to create a server certificate, see the following topics:

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeClientCertificateRequest

@return DescribeClientCertificateResponse

func (*Client) DescribeClientCertificateStatus

func (client *Client) DescribeClientCertificateStatus(request *DescribeClientCertificateStatusRequest) (_result *DescribeClientCertificateStatusResponse, _err error)

Summary:

Queries the status information about client certificates and server certificates by using the unique identifiers of the certificates.

Description:

You can call the DescribeClientCertificateStatus operation to query the status information about multiple client certificates or server certificates at a time by using the unique identifiers of the certificates. For example, you can check whether a certificate is revoked.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeClientCertificateStatusRequest

@return DescribeClientCertificateStatusResponse

func (*Client) DescribeClientCertificateStatusWithOptions

func (client *Client) DescribeClientCertificateStatusWithOptions(request *DescribeClientCertificateStatusRequest, runtime *util.RuntimeOptions) (_result *DescribeClientCertificateStatusResponse, _err error)

Summary:

Queries the status information about client certificates and server certificates by using the unique identifiers of the certificates.

Description:

You can call the DescribeClientCertificateStatus operation to query the status information about multiple client certificates or server certificates at a time by using the unique identifiers of the certificates. For example, you can check whether a certificate is revoked.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeClientCertificateStatusRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeClientCertificateStatusResponse

func (*Client) DescribeClientCertificateWithOptions

func (client *Client) DescribeClientCertificateWithOptions(request *DescribeClientCertificateRequest, runtime *util.RuntimeOptions) (_result *DescribeClientCertificateResponse, _err error)

Summary:

Queries the details about a client certificate or a server certificate by using the unique identifier of the certificate.

Description:

You can call the DescribeClientCertificate operation to query the details about a client certificate or a server certificate by using the unique identifier of the certificate. The details include the serial number, user information, content, and status of each certificate.

Before you call this operation, make sure that you have created a client certificate or a server certificate.

For more information about how to call an operation to create a client certificate, see the following topics:

For more information about how to call an operation to create a server certificate, see the following topics:

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - DescribeClientCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeClientCertificateResponse

func (*Client) GetCAInstanceStatus

func (client *Client) GetCAInstanceStatus(request *GetCAInstanceStatusRequest) (_result *GetCAInstanceStatusResponse, _err error)

Summary:

Queries the status information about a private root certificate authority (CA) instance or a private intermediate CA instance that you purchase by using the Certificate Management Service console.

Description:

## Usage notes

You can call the GetCAInstanceStatus operation to query the status information of a private CA instance by using the ID of the instance. The instance is purchased by using the SSL Certificates Service console. The status information includes the status of the private CA instance, the number of certificates that can be issued by using the private CA instance, and the number of issued certificates.

Before you call this operation, make sure that you have purchased a private CA by using the [SSL Certificates Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Create a private CA](https://help.aliyun.com/document_detail/208553.html).

@param request - GetCAInstanceStatusRequest

@return GetCAInstanceStatusResponse

func (*Client) GetCAInstanceStatusWithOptions

func (client *Client) GetCAInstanceStatusWithOptions(request *GetCAInstanceStatusRequest, runtime *util.RuntimeOptions) (_result *GetCAInstanceStatusResponse, _err error)

Summary:

Queries the status information about a private root certificate authority (CA) instance or a private intermediate CA instance that you purchase by using the Certificate Management Service console.

Description:

## Usage notes

You can call the GetCAInstanceStatus operation to query the status information of a private CA instance by using the ID of the instance. The instance is purchased by using the SSL Certificates Service console. The status information includes the status of the private CA instance, the number of certificates that can be issued by using the private CA instance, and the number of issued certificates.

Before you call this operation, make sure that you have purchased a private CA by using the [SSL Certificates Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Create a private CA](https://help.aliyun.com/document_detail/208553.html).

@param request - GetCAInstanceStatusRequest

@param runtime - runtime options for this request RuntimeOptions

@return GetCAInstanceStatusResponse

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) ListClientCertificate

func (client *Client) ListClientCertificate(request *ListClientCertificateRequest) (_result *ListClientCertificateResponse, _err error)

Summary:

Queries the details about all client certificates and server certificates.

Description:

You can call the ListClientCertificate operation to perform a paged query of the details about all client certificates and server certificates that you create. The details include the unique identifier, serial number, user information, content, and status of each certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - ListClientCertificateRequest

@return ListClientCertificateResponse

func (*Client) ListClientCertificateWithOptions

func (client *Client) ListClientCertificateWithOptions(request *ListClientCertificateRequest, runtime *util.RuntimeOptions) (_result *ListClientCertificateResponse, _err error)

Summary:

Queries the details about all client certificates and server certificates.

Description:

You can call the ListClientCertificate operation to perform a paged query of the details about all client certificates and server certificates that you create. The details include the unique identifier, serial number, user information, content, and status of each certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - ListClientCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return ListClientCertificateResponse

func (*Client) ListRevokeCertificate

func (client *Client) ListRevokeCertificate(request *ListRevokeCertificateRequest) (_result *ListRevokeCertificateResponse, _err error)

Summary:

Queries the details about all client certificates and server certificates that are revoked.

Description:

You can call the ListRevokeCertificate operation to perform a paged query of the details about all revoked client certificates and server certificates. The details include the unique identifier, serial number, and revocation date of each certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - ListRevokeCertificateRequest

@return ListRevokeCertificateResponse

func (*Client) ListRevokeCertificateWithOptions

func (client *Client) ListRevokeCertificateWithOptions(request *ListRevokeCertificateRequest, runtime *util.RuntimeOptions) (_result *ListRevokeCertificateResponse, _err error)

Summary:

Queries the details about all client certificates and server certificates that are revoked.

Description:

You can call the ListRevokeCertificate operation to perform a paged query of the details about all revoked client certificates and server certificates. The details include the unique identifier, serial number, and revocation date of each certificate.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - ListRevokeCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return ListRevokeCertificateResponse

func (*Client) UpdateCACertificateStatus

func (client *Client) UpdateCACertificateStatus(request *UpdateCACertificateStatusRequest) (_result *UpdateCACertificateStatusResponse, _err error)

Summary:

Changes the status of a root certificate authority (CA) certificate or an intermediate CA certificate from ISSUE to REVOKE.

Description:

After a CA certificate is created, the CA certificate is in the ISSUE state by default. You can call the UpdateCACertificateStatus operation to change the status of a CA certificate from ISSUE to REVOKE. If a CA certificate is in the ISSUE state, the CA certificate can be used to issue certificates. If a CA certificate is in the REVOKE state, the CA certificate cannot be used to issue certificates, and the certificates that are issued from the CA certificate become invalid.

Before you call this operation, make sure that you have created a root CA by calling the [CreateRootCACertificate] operation or an intermediate CA certificate by calling the [CreateSubCACertificate] operation.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - UpdateCACertificateStatusRequest

@return UpdateCACertificateStatusResponse

func (*Client) UpdateCACertificateStatusWithOptions

func (client *Client) UpdateCACertificateStatusWithOptions(request *UpdateCACertificateStatusRequest, runtime *util.RuntimeOptions) (_result *UpdateCACertificateStatusResponse, _err error)

Summary:

Changes the status of a root certificate authority (CA) certificate or an intermediate CA certificate from ISSUE to REVOKE.

Description:

After a CA certificate is created, the CA certificate is in the ISSUE state by default. You can call the UpdateCACertificateStatus operation to change the status of a CA certificate from ISSUE to REVOKE. If a CA certificate is in the ISSUE state, the CA certificate can be used to issue certificates. If a CA certificate is in the REVOKE state, the CA certificate cannot be used to issue certificates, and the certificates that are issued from the CA certificate become invalid.

Before you call this operation, make sure that you have created a root CA by calling the [CreateRootCACertificate] operation or an intermediate CA certificate by calling the [CreateSubCACertificate] operation.

## Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

@param request - UpdateCACertificateStatusRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateCACertificateStatusResponse

type CreateClientCertificateRequest

type CreateClientCertificateRequest struct {
	// The expiration time of the client certificate. This value is a UNIX timestamp. Unit: seconds.
	//
	// >  The **BeforeTime*	- and **AfterTime*	- parameters must be both empty or both specified.
	//
	// example:
	//
	// 1665819958
	AfterTime *int64 `json:"AfterTime,omitempty" xml:"AfterTime,omitempty"`
	// The key algorithm of the client certificate. The key algorithm is in the `<Encryption algorithm>_<Key length>` 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 client certificate must be the same with the encryption algorithm of the intermediate certificate authority (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 client certificate must be RSA_1024, RSA_2048, or RSA_4096.
	//
	// > You can call the [DescribeCACertificate] operation to query the key algorithm of an intermediate CA certificate.
	//
	// example:
	//
	// RSA_2048
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance time of the client 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.
	//
	// example:
	//
	// 1634283958
	BeforeTime *int64 `json:"BeforeTime,omitempty" xml:"BeforeTime,omitempty"`
	// The name of the client certificate user. In most cases, the user of a client certificate is an individual, a company, an organization, or an application. We recommend that you enter the common name of a user. Examples: Bob, Alibaba, Alibaba Cloud password platform, and Tmall Genie.
	//
	// example:
	//
	// aliyun
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The country in which the organization is located. Default value: CN.
	//
	// example:
	//
	// CN
	Country *string `json:"Country,omitempty" xml:"Country,omitempty"`
	// The validity period of the client certificate. Unit: day. 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 at the same time, the validity period of the client certificate is determined by the value of the **Days*	- parameter.
	//
	// 	- The validity period of the client certificate cannot exceed the validity period of the intermediate CA certificate. You can call the [DescribeCACertificate](https://help.aliyun.com/document_detail/465954.html) operation to query the validity period of an intermediate CA certificate.
	//
	// example:
	//
	// 365
	Days *int32 `json:"Days,omitempty" xml:"Days,omitempty"`
	// include the CRL address.
	//
	// - 0- No
	//
	// - 1- Yes
	//
	// example:
	//
	// 1
	EnableCrl *int64 `json:"EnableCrl,omitempty" xml:"EnableCrl,omitempty"`
	// 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.
	//
	// example:
	//
	// 1
	Immediately *int32 `json:"Immediately,omitempty" xml:"Immediately,omitempty"`
	// 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.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The validity period of the client certificate. Unit: months.
	//
	// example:
	//
	// 1
	Months *int32 `json:"Months,omitempty" xml:"Months,omitempty"`
	// The name of the organization. Default value: Alibaba Inc.
	//
	// example:
	//
	// Alibaba Cloud
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department. Default value: Aliyun CDN.
	//
	// example:
	//
	// IT
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the intermediate CA certificate from which the server certificate is issued.
	//
	// > You can call the [DescribeCACertificateList] operation to query the unique identifier of an intermediate CA certificate.
	//
	// example:
	//
	// 273ae6bb538d538c70c01f81jh2****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The type of the Subject Alternative Name (SAN) extension that is supported by the client certificate. Valid values:
	//
	// 	- **1**: an email address
	//
	// 	- **6**: a Uniform Resource Identifier (URI)
	//
	// example:
	//
	// 1
	SanType *int32 `json:"SanType,omitempty" xml:"SanType,omitempty"`
	// The content of the extension. You can specify multiple SAN extensions. If you want to specify multiple SAN extensions, separate them with commas (,).
	//
	// example:
	//
	// somebody@example.com
	SanValue *string `json:"SanValue,omitempty" xml:"SanValue,omitempty"`
	// 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.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The validity period of the client certificate. Unit: years.
	//
	// example:
	//
	// 5
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (CreateClientCertificateRequest) GoString

func (*CreateClientCertificateRequest) SetAfterTime

func (*CreateClientCertificateRequest) SetAlgorithm

func (*CreateClientCertificateRequest) SetBeforeTime

func (*CreateClientCertificateRequest) SetCommonName

func (*CreateClientCertificateRequest) SetCountry

func (*CreateClientCertificateRequest) SetDays

func (*CreateClientCertificateRequest) SetEnableCrl added in v1.0.16

func (*CreateClientCertificateRequest) SetImmediately

func (*CreateClientCertificateRequest) SetLocality

func (*CreateClientCertificateRequest) SetMonths

func (*CreateClientCertificateRequest) SetOrganization

func (*CreateClientCertificateRequest) SetOrganizationUnit

func (*CreateClientCertificateRequest) SetParentIdentifier

func (*CreateClientCertificateRequest) SetSanType

func (*CreateClientCertificateRequest) SetSanValue

func (*CreateClientCertificateRequest) SetState

func (*CreateClientCertificateRequest) SetYears

func (CreateClientCertificateRequest) String

type CreateClientCertificateResponse

type CreateClientCertificateResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateClientCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateClientCertificateResponse) GoString

func (*CreateClientCertificateResponse) SetHeaders

func (*CreateClientCertificateResponse) SetStatusCode

func (CreateClientCertificateResponse) String

type CreateClientCertificateResponseBody

type CreateClientCertificateResponseBody struct {
	// The certificate chain of the client certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the client certificate.
	//
	// example:
	//
	// 190ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 8C467B38-3910-447D-87BC-AC049166F216
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The serial number of the certificate.
	//
	// example:
	//
	// 0f29522da2dae7a1c4b6ab7132ad3c06
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The content of the client certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (CreateClientCertificateResponseBody) GoString

func (*CreateClientCertificateResponseBody) SetCertificateChain

func (*CreateClientCertificateResponseBody) SetIdentifier

func (*CreateClientCertificateResponseBody) SetRequestId

func (*CreateClientCertificateResponseBody) SetSerialNumber added in v1.0.14

func (*CreateClientCertificateResponseBody) SetX509Certificate

func (CreateClientCertificateResponseBody) String

type CreateClientCertificateWithCsrRequest

type CreateClientCertificateWithCsrRequest struct {
	// The expiration time of the client certificate. This value is a UNIX timestamp. Unit: seconds.
	//
	// >  The **BeforeTime*	- and **AfterTime*	- parameters must be both empty or both specified.
	//
	// example:
	//
	// 1665819958
	AfterTime *int64 `json:"AfterTime,omitempty" xml:"AfterTime,omitempty"`
	// The key algorithm of the client certificate. The key algorithm is in the `<Encryption algorithm>_<Key length>` 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 client certificate must be the same with 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 client certificate must be RSA_1024, RSA_2048, or RSA_4096.
	//
	// >  You can call the [DescribeCACertificate](https://help.aliyun.com/document_detail/328096.html) operation to query the key algorithm of an intermediate CA certificate.
	//
	// example:
	//
	// RSA_2048
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance time of the client 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.
	//
	// example:
	//
	// 1634283958
	BeforeTime *int64 `json:"BeforeTime,omitempty" xml:"BeforeTime,omitempty"`
	// 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.
	//
	// example:
	//
	// aliyundoc.com
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located, such as **CN*	- and **US**.
	//
	// example:
	//
	// CN
	Country *string `json:"Country,omitempty" xml:"Country,omitempty"`
	// 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?](https://help.aliyun.com/document_detail/42218.html) You can also create a CSR file in the Certificate Management Service console. For more information, see [Create a CSR](https://help.aliyun.com/document_detail/313297.html).
	//
	// example:
	//
	// -----BEGIN CERTIFICATE REQUEST-----   ...... -----END CERTIFICATE REQUEST-----
	Csr *string `json:"Csr,omitempty" xml:"Csr,omitempty"`
	// The validity period of the client 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 client certificate is determined by the value of the **Days*	- parameter.
	//
	// 	- The validity period of the client certificate cannot exceed the validity period of the intermediate CA certificate. You can call the [DescribeCACertificate](https://help.aliyun.com/document_detail/328096.html) operation to query the validity period of an intermediate CA certificate.
	//
	// example:
	//
	// 365
	Days *int32 `json:"Days,omitempty" xml:"Days,omitempty"`
	// include the CRL address.
	//
	// - 0- No
	//
	// - 1- Yes
	//
	// example:
	//
	// 1
	EnableCrl *int64 `json:"EnableCrl,omitempty" xml:"EnableCrl,omitempty"`
	// 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.
	//
	// example:
	//
	// 1
	Immediately *int32 `json:"Immediately,omitempty" xml:"Immediately,omitempty"`
	// 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.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The validity period of the client certificate. Unit: months.
	//
	// example:
	//
	// 12
	Months *int32 `json:"Months,omitempty" xml:"Months,omitempty"`
	// The name of the organization. Default value: Alibaba Inc.
	//
	// example:
	//
	// Alibaba Cloud Computing Co., Ltd.
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department. Default value: Aliyun CDN.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the intermediate CA certificate from which the client certificate is issued.
	//
	// >  You can call the [DescribeCACertificateList](https://help.aliyun.com/document_detail/328095.html) operation to query the unique identifier of an intermediate CA certificate.
	//
	// example:
	//
	// 270ae6bb538d538c70c01f81fg3****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The type of the Subject Alternative Name (SAN) extension that is supported by the client certificate. Valid values:
	//
	// 	- **1**: an email address
	//
	// 	- **6**: a Uniform Resource Identifier (URI)
	//
	// example:
	//
	// 1
	SanType *int32 `json:"SanType,omitempty" xml:"SanType,omitempty"`
	// The content of the extension. You can specify multiple SAN extensions. If you want to specify multiple SAN extensions, separate them with commas (,).
	//
	// example:
	//
	// somebody@example.com
	SanValue *string `json:"SanValue,omitempty" xml:"SanValue,omitempty"`
	// 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.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The validity period of the client certificate. Unit: years.
	//
	// example:
	//
	// 1
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (CreateClientCertificateWithCsrRequest) GoString

func (*CreateClientCertificateWithCsrRequest) SetAfterTime

func (*CreateClientCertificateWithCsrRequest) SetAlgorithm

func (*CreateClientCertificateWithCsrRequest) SetBeforeTime

func (*CreateClientCertificateWithCsrRequest) SetCommonName

func (*CreateClientCertificateWithCsrRequest) SetCountry

func (*CreateClientCertificateWithCsrRequest) SetCsr

func (*CreateClientCertificateWithCsrRequest) SetDays

func (*CreateClientCertificateWithCsrRequest) SetEnableCrl added in v1.0.16

func (*CreateClientCertificateWithCsrRequest) SetImmediately

func (*CreateClientCertificateWithCsrRequest) SetLocality

func (*CreateClientCertificateWithCsrRequest) SetMonths

func (*CreateClientCertificateWithCsrRequest) SetOrganization

func (*CreateClientCertificateWithCsrRequest) SetOrganizationUnit

func (*CreateClientCertificateWithCsrRequest) SetParentIdentifier

func (*CreateClientCertificateWithCsrRequest) SetSanType

func (*CreateClientCertificateWithCsrRequest) SetSanValue

func (*CreateClientCertificateWithCsrRequest) SetState

func (*CreateClientCertificateWithCsrRequest) SetYears

func (CreateClientCertificateWithCsrRequest) String

type CreateClientCertificateWithCsrResponse

type CreateClientCertificateWithCsrResponse struct {
	Headers    map[string]*string                          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateClientCertificateWithCsrResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateClientCertificateWithCsrResponse) GoString

func (*CreateClientCertificateWithCsrResponse) SetHeaders

func (*CreateClientCertificateWithCsrResponse) SetStatusCode

func (CreateClientCertificateWithCsrResponse) String

type CreateClientCertificateWithCsrResponseBody

type CreateClientCertificateWithCsrResponseBody struct {
	// The certificate chain of the client certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the client certificate.
	//
	// example:
	//
	// 200ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 31C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The serial number of the server certificate.
	//
	// example:
	//
	// 0f29522da2dae7a1c4b6ab7132ad3c06
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The content of the client certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (CreateClientCertificateWithCsrResponseBody) GoString

func (*CreateClientCertificateWithCsrResponseBody) SetCertificateChain

func (*CreateClientCertificateWithCsrResponseBody) SetIdentifier

func (*CreateClientCertificateWithCsrResponseBody) SetRequestId

func (*CreateClientCertificateWithCsrResponseBody) SetSerialNumber added in v1.0.14

func (*CreateClientCertificateWithCsrResponseBody) SetX509Certificate

func (CreateClientCertificateWithCsrResponseBody) String

type CreateCustomCertificateRequest added in v1.0.15

type CreateCustomCertificateRequest struct {
	// The passthrough parameters.
	ApiPassthrough *CreateCustomCertificateRequestApiPassthrough `json:"ApiPassthrough,omitempty" xml:"ApiPassthrough,omitempty" type:"Struct"`
	// The content of the CSR. You can generate a CSR by using the OpenSSL tool or the Keytool tool. For more information, see [How do I create a CSR file?](https://help.aliyun.com/document_detail/42218.html)
	//
	// This parameter is required.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE REQUEST-----
	//
	// MIIBczCCARgCAQAwgYoxFDASBgNVBAMMC2FsaXl1bi50ZXN0MQ0wCwYDVQQ
	//
	// ...
	//
	// ...
	//
	// ...
	//
	// vbIgMQIhAKHDWD6/WAMbtezAt4bysJ/BZIDz1jPWuUR5GV4TJ/mS
	//
	// -----END CERTIFICATE REQUEST-----
	Csr *string `json:"Csr,omitempty" xml:"Csr,omitempty"`
	// include the CRL address.
	//
	// - 0- No
	//
	// - 1- Yes
	//
	// example:
	//
	// 1
	EnableCrl *int64 `json:"EnableCrl,omitempty" xml:"EnableCrl,omitempty"`
	// Specifies whether to immediately issue the certificate. Valid values:
	//
	// 	- 0: asynchronously issues the certificate.
	//
	// 	- 1: immediately issues the certificate.
	//
	// 	- 2: immediately issues the certificate and returns the certificate chain.
	//
	// example:
	//
	// 0
	Immediately *int32 `json:"Immediately,omitempty" xml:"Immediately,omitempty"`
	// The identifier of the certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// 1ed4068c-6f1b-6deb-8e32-3f8439a851cb
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The validity period of the certificate. The value cannot exceed the validity period of the certificate instance. Relative time and absolute time are supported.
	//
	// Units of relative time: year, month, and day.
	//
	// 	- Use y to specify years.
	//
	// 	- Use m to specify months.
	//
	// 	- Use d to specify days.
	//
	// Absolute time: Use Greenwich Mean Time (GMT). Format: `yyyy-MM-dd\\"T\\"HH:mm:ss\\"Z\\"`
	//
	// 	- Format of the end time: $NotAfter
	//
	// 	- Format of the start time and end time: $NotBefore/$NotAfter
	//
	// This parameter is required.
	//
	// example:
	//
	// Relative time:
	//
	//  ● 1y
	//
	//  ● 3m
	//
	//  ● 7d
	//
	// Absolute time:
	//
	// ● 2006-01-02T15:04:05Z
	//
	// ● 2006-01-02T15:04:05Z/2023-03-09T17:48:13Z
	Validity *string `json:"Validity,omitempty" xml:"Validity,omitempty"`
}

func (CreateCustomCertificateRequest) GoString added in v1.0.15

func (*CreateCustomCertificateRequest) SetApiPassthrough added in v1.0.15

func (*CreateCustomCertificateRequest) SetCsr added in v1.0.15

func (*CreateCustomCertificateRequest) SetEnableCrl added in v1.0.16

func (*CreateCustomCertificateRequest) SetImmediately added in v1.0.15

func (*CreateCustomCertificateRequest) SetParentIdentifier added in v1.0.15

func (*CreateCustomCertificateRequest) SetValidity added in v1.0.15

func (CreateCustomCertificateRequest) String added in v1.0.15

type CreateCustomCertificateRequestApiPassthrough added in v1.0.15

type CreateCustomCertificateRequestApiPassthrough struct {
	// The extensions of the certificate.
	Extensions *CreateCustomCertificateRequestApiPassthroughExtensions `json:"Extensions,omitempty" xml:"Extensions,omitempty" type:"Struct"`
	// The serial number MUST be a positive integer assigned by the CA to each certificate.
	//
	// example:
	//
	// 16889526086333
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The name of the entity that uses the certificate.
	Subject *CreateCustomCertificateRequestApiPassthroughSubject `json:"Subject,omitempty" xml:"Subject,omitempty" type:"Struct"`
}

func (CreateCustomCertificateRequestApiPassthrough) GoString added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthrough) SetExtensions added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthrough) SetSerialNumber added in v1.0.16

func (*CreateCustomCertificateRequestApiPassthrough) SetSubject added in v1.0.15

func (CreateCustomCertificateRequestApiPassthrough) String added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughExtensions added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughExtensions struct {
	// If it is a necessary parameter, the critical list contains the parameter name.
	Criticals []*string `json:"Criticals,omitempty" xml:"Criticals,omitempty" type:"Repeated"`
	// The extended key usage.
	ExtendedKeyUsages []*string `json:"ExtendedKeyUsages,omitempty" xml:"ExtendedKeyUsages,omitempty" type:"Repeated"`
	// The key usage.
	KeyUsage *CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage `json:"KeyUsage,omitempty" xml:"KeyUsage,omitempty" type:"Struct"`
	// The aliases of the entities.
	SubjectAlternativeNames []*CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames `json:"SubjectAlternativeNames,omitempty" xml:"SubjectAlternativeNames,omitempty" type:"Repeated"`
}

func (CreateCustomCertificateRequestApiPassthroughExtensions) GoString added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensions) SetCriticals added in v1.0.16

func (*CreateCustomCertificateRequestApiPassthroughExtensions) SetExtendedKeyUsages added in v1.0.15

func (CreateCustomCertificateRequestApiPassthroughExtensions) String added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage struct {
	// The original name of the parameter is NonRepudiation.
	//
	// example:
	//
	// false
	ContentCommitment *bool `json:"ContentCommitment,omitempty" xml:"ContentCommitment,omitempty"`
	// Specifies whether the key can be used for data encryption.
	//
	// example:
	//
	// false
	DataEncipherment *bool `json:"DataEncipherment,omitempty" xml:"DataEncipherment,omitempty"`
	// Specifies whether the key can be used only for data decryption.
	//
	// example:
	//
	// false
	DecipherOnly *bool `json:"DecipherOnly,omitempty" xml:"DecipherOnly,omitempty"`
	// Specifies whether the key can be used for digital signing. If you set this parameter to true, the private key of the certificate can be used to generate digital signatures, and the public key of the certificate can be used to verify digital signatures.
	//
	// example:
	//
	// true
	DigitalSignature *bool `json:"DigitalSignature,omitempty" xml:"DigitalSignature,omitempty"`
	// Specifies whether the key can be used only for data encryption.
	//
	// example:
	//
	// false
	EncipherOnly *bool `json:"EncipherOnly,omitempty" xml:"EncipherOnly,omitempty"`
	// Specifies whether the key can be used for key agreement.
	//
	// example:
	//
	// false
	KeyAgreement *bool `json:"KeyAgreement,omitempty" xml:"KeyAgreement,omitempty"`
	// Specifies whether the key can be used for data encipherment.
	//
	// example:
	//
	// false
	KeyEncipherment *bool `json:"KeyEncipherment,omitempty" xml:"KeyEncipherment,omitempty"`
	// Specifies whether the key can be used for non-repudiation. This parameter is renamed ContentCommitment in the X.509 standard.
	//
	// example:
	//
	// false
	NonRepudiation *bool `json:"NonRepudiation,omitempty" xml:"NonRepudiation,omitempty"`
}

func (CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) GoString added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetContentCommitment added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetDataEncipherment added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetDecipherOnly added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetDigitalSignature added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetEncipherOnly added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetKeyAgreement added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetKeyEncipherment added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) SetNonRepudiation added in v1.0.15

func (CreateCustomCertificateRequestApiPassthroughExtensionsKeyUsage) String added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames struct {
	// The type of the alias. Valid values:
	//
	// 	- rfc822Name: email address
	//
	// 	- dNSName: domain name
	//
	// 	- uniformResourceIdentifier: URI
	//
	// 	- iPAddress: IP address
	//
	// This parameter is required.
	//
	// example:
	//
	// dNSName
	Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
	// The alias that meets the requirement of a specified type.
	//
	// example:
	//
	// rfc822Name:
	//
	// exmaple@certqa.cn
	//
	// dNSName:
	//
	// www.certqa.cn
	//
	// uniformResourceIdentifier:
	//
	// acs:ecs:regionid:15619224785*****:instance/i-bp1bzvz55uz27hf*****
	//
	// iPAddress:
	//
	// 127.0.0.1
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames) GoString added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames) SetType added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames) SetValue added in v1.0.15

func (CreateCustomCertificateRequestApiPassthroughExtensionsSubjectAlternativeNames) String added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughSubject added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughSubject struct {
	// The common name of the certificate user.
	//
	// example:
	//
	// Bob
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country. The value is an alpha-2 country code that complies with the ISO 3166-1 standard. For more information about country codes, visit <https://www.iso.org/obp/ui/#search/code/>.
	//
	// example:
	//
	// CN
	Country *string `json:"Country,omitempty" xml:"Country,omitempty"`
	// Customize the Subject attributes of the certificate.
	CustomAttributes []*CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes `json:"CustomAttributes,omitempty" xml:"CustomAttributes,omitempty" type:"Repeated"`
	// The name of the city in which the organization is located. The value can contain letters.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The name of the organization.
	//
	// example:
	//
	// XXX company
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department or branch in the organization.
	//
	// example:
	//
	// XXX department
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The name of the province or state in which the organization associated with the certificate is located.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
}

func (CreateCustomCertificateRequestApiPassthroughSubject) GoString added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughSubject) SetCommonName added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughSubject) SetCountry added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughSubject) SetLocality added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughSubject) SetOrganization added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughSubject) SetOrganizationUnit added in v1.0.15

func (*CreateCustomCertificateRequestApiPassthroughSubject) SetState added in v1.0.15

func (CreateCustomCertificateRequestApiPassthroughSubject) String added in v1.0.15

type CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes added in v1.0.16

type CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes struct {
	// Custom attribute type as:
	//
	// - 2.5.4.6 : country
	//
	// - 2.5.4.10 : organization
	//
	// - 2.5.4.11 : organizational unit
	//
	// - 2.5.4.12 : title
	//
	// - 2.5.4.3 : common name
	//
	// - 2.5.4.9 : street
	//
	// - 2.5.4.5 : serial number
	//
	// - 2.5.4.7 : locality
	//
	// - 2.5.4.8 : state
	//
	// - 1.3.6.1.4.1.37244.1.1 : Matter Operational Certificate - Node ID
	//
	// - 1.3.6.1.4.1.37244.1.5 : Matter Operational Certificate - Fabric ID
	//
	// - 1.3.6.1.4.1.37244.2.1 : Matter Device Attestation Certificate Vender ID (VID)
	//
	// - 1.3.6.1.4.1.37244.2.2 : Matter Device Attestation Certificate Product ID (PID).
	//
	// example:
	//
	// 2.5.4.3
	ObjectIdentifier *string `json:"ObjectIdentifier,omitempty" xml:"ObjectIdentifier,omitempty"`
	// Custom attribute value.
	//
	// example:
	//
	// Aliyun
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes) GoString added in v1.0.16

func (*CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes) SetObjectIdentifier added in v1.0.16

func (*CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes) SetValue added in v1.0.16

func (CreateCustomCertificateRequestApiPassthroughSubjectCustomAttributes) String added in v1.0.16

type CreateCustomCertificateResponse added in v1.0.15

type CreateCustomCertificateResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateCustomCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateCustomCertificateResponse) GoString added in v1.0.15

func (*CreateCustomCertificateResponse) SetBody added in v1.0.15

func (*CreateCustomCertificateResponse) SetHeaders added in v1.0.15

func (*CreateCustomCertificateResponse) SetStatusCode added in v1.0.15

func (CreateCustomCertificateResponse) String added in v1.0.15

type CreateCustomCertificateResponseBody added in v1.0.15

type CreateCustomCertificateResponseBody struct {
	// The content of the certificate. This parameter is returned only if Immediately is set to 1 or 2.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----
	//
	// MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/
	//
	// ...
	//
	// ...
	//
	// ...
	//
	// KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==
	//
	// -----END CERTIFICATE-----
	Certificate *string `json:"Certificate,omitempty" xml:"Certificate,omitempty"`
	// The certificate chain of the certificate. This parameter is returned only if Immediately is set to 2.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----
	//
	// MIIBfzCCATGgAwIBAgIUfI5kSdcO2S0+LkpdL3b2VUJG10YwBQYDK2VwMDUxCzAJ
	//
	// ...
	//
	// ...
	//
	// ...
	//
	// ZYYG
	//
	// -----END CERTIFICATE-----
	//
	// -----BEGIN CERTIFICATE-----
	//
	// MIIBczCCARgCAQAwgYoxFDASBgNVBAMMC2FsaXl1bi50ZXN0MQ0wCwYDVQQ
	//
	// ...
	//
	// ...
	//
	// ...
	//
	// KL5cUmF
	//
	// -----END CERTIFICATE-----
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The request ID.
	//
	// example:
	//
	// 12345678-1234-1234-1234-123456789ABC
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The serial number of the certificate. This parameter is returned only if Immediately is set to 1 or 2.
	//
	// example:
	//
	// 084bde9cd233f0ddae33adc438cfbbbd****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
}

func (CreateCustomCertificateResponseBody) GoString added in v1.0.15

func (*CreateCustomCertificateResponseBody) SetCertificate added in v1.0.15

func (*CreateCustomCertificateResponseBody) SetCertificateChain added in v1.0.15

func (*CreateCustomCertificateResponseBody) SetIdentifier added in v1.0.15

func (*CreateCustomCertificateResponseBody) SetRequestId added in v1.0.15

func (*CreateCustomCertificateResponseBody) SetSerialNumber added in v1.0.15

func (CreateCustomCertificateResponseBody) String added in v1.0.15

type CreateRevokeClientCertificateRequest

type CreateRevokeClientCertificateRequest struct {
	// The unique identifier of the client certificate or server certificate that you want to revoke.
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers of all client certificates and server certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
}

func (CreateRevokeClientCertificateRequest) GoString

func (*CreateRevokeClientCertificateRequest) SetIdentifier

func (CreateRevokeClientCertificateRequest) String

type CreateRevokeClientCertificateResponse

type CreateRevokeClientCertificateResponse struct {
	Headers    map[string]*string                         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateRevokeClientCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateRevokeClientCertificateResponse) GoString

func (*CreateRevokeClientCertificateResponse) SetHeaders

func (*CreateRevokeClientCertificateResponse) SetStatusCode

func (CreateRevokeClientCertificateResponse) String

type CreateRevokeClientCertificateResponseBody

type CreateRevokeClientCertificateResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateRevokeClientCertificateResponseBody) GoString

func (*CreateRevokeClientCertificateResponseBody) SetRequestId

func (CreateRevokeClientCertificateResponseBody) String

type CreateRootCACertificateRequest

type CreateRootCACertificateRequest struct {
	// The key algorithm of the root CA certificate. The key algorithm is in the `<Encryption algorithm>_<Key length>` 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 root CA certificate must be consistent with the **encryption algorithm*	- of the private root CA instance that you purchase. For example, if the **encryption algorithm*	- of the private root CA instance that you purchase is **RSA**, the key algorithm of the root CA certificate must be **RSA_1024**, **RSA_2048**, or **RSA_4096**.
	//
	// This parameter is required.
	//
	// example:
	//
	// RSA_2048
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The common name or abbreviation of the organization. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Alibaba
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country or region in which the organization is located. You can enter an alpha-2 code. For example, you can use **CN*	- to indicate China and use **US*	- to indicate the United States.
	//
	// For more information about country codes, see the **"Country codes"*	- section of the [Manage company profiles](https://help.aliyun.com/document_detail/198289.html) topic.
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// The name of the city in which the organization is located. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The name of the organization that is associated with the root CA certificate. You can enter the name of your enterprise or company. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Alibaba
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department or branch in the organization. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The name of the province, municipality, or autonomous region in which the organization is located. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The validity period of the root CA certificate. Unit: years.
	//
	// >  We recommend that you set this parameter to a value from 5 to 10.
	//
	// This parameter is required.
	//
	// example:
	//
	// 10
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (CreateRootCACertificateRequest) GoString

func (*CreateRootCACertificateRequest) SetAlgorithm

func (*CreateRootCACertificateRequest) SetCommonName

func (*CreateRootCACertificateRequest) SetCountryCode

func (*CreateRootCACertificateRequest) SetLocality

func (*CreateRootCACertificateRequest) SetOrganization

func (*CreateRootCACertificateRequest) SetOrganizationUnit

func (*CreateRootCACertificateRequest) SetState

func (*CreateRootCACertificateRequest) SetYears

func (CreateRootCACertificateRequest) String

type CreateRootCACertificateResponse

type CreateRootCACertificateResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateRootCACertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateRootCACertificateResponse) GoString

func (*CreateRootCACertificateResponse) SetHeaders

func (*CreateRootCACertificateResponse) SetStatusCode

func (CreateRootCACertificateResponse) String

type CreateRootCACertificateResponseBody

type CreateRootCACertificateResponseBody struct {
	// The root CA certificate in the PEM format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
	Certificate *string `json:"Certificate,omitempty" xml:"Certificate,omitempty"`
	// The certificate chain of the root CA certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the root CA certificate.
	//
	// example:
	//
	// 1a83bcbb89e562885e40aa0108f5****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 6D9B4C5F-7140-5B41-924C-329181DC00C1
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateRootCACertificateResponseBody) GoString

func (*CreateRootCACertificateResponseBody) SetCertificate

func (*CreateRootCACertificateResponseBody) SetCertificateChain

func (*CreateRootCACertificateResponseBody) SetIdentifier

func (*CreateRootCACertificateResponseBody) SetRequestId

func (CreateRootCACertificateResponseBody) String

type CreateServerCertificateRequest

type CreateServerCertificateRequest struct {
	// 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.
	//
	// example:
	//
	// 1665819958
	AfterTime *int64 `json:"AfterTime,omitempty" xml:"AfterTime,omitempty"`
	// The key algorithm of the server certificate. The key algorithm is in the `<Encryption algorithm>_<Key length>` 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](https://help.aliyun.com/document_detail/328096.html) operation to query the key algorithm of an intermediate CA certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// RSA_2048
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// 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.
	//
	// example:
	//
	// 1634283958
	BeforeTime *int64 `json:"BeforeTime,omitempty" xml:"BeforeTime,omitempty"`
	// The name of the certificate user. The user of a server certificate is a server. We recommend that you enter the domain name or IP address of the server.
	//
	// This parameter is required.
	//
	// example:
	//
	// www.example.com
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located, such as CN or US.
	//
	// example:
	//
	// CN
	Country *string `json:"Country,omitempty" xml:"Country,omitempty"`
	// 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](https://help.aliyun.com/document_detail/328096.html) operation to query the validity period of an intermediate CA certificate.
	//
	// example:
	//
	// 365
	Days *int32 `json:"Days,omitempty" xml:"Days,omitempty"`
	// The additional domain names and 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.
	//
	// Separate multiple domain names and multiple IP addresses with commas (,).
	//
	// example:
	//
	// example.com
	Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"`
	// include the CRL address.
	//
	// - 0- No
	//
	// - 1- Yes
	//
	// example:
	//
	// 1
	EnableCrl *int64 `json:"EnableCrl,omitempty" xml:"EnableCrl,omitempty"`
	// 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.
	//
	// example:
	//
	// 1
	Immediately *int32 `json:"Immediately,omitempty" xml:"Immediately,omitempty"`
	// 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.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The validity period of the server certificate. Unit: months.
	//
	// example:
	//
	// 12
	Months *int32 `json:"Months,omitempty" xml:"Months,omitempty"`
	// The name of the organization. Default value: Alibaba Inc.
	//
	// example:
	//
	// Alibaba Cloud
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department. Default value: Aliyun CDN.
	//
	// example:
	//
	// IT
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the intermediate CA certificate from which the server certificate is issued.
	//
	// >  You can call the [DescribeCACertificateList](https://help.aliyun.com/document_detail/328095.html) operation to query the unique identifier of an intermediate CA certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// 271ae6bb538d538c70c01f81dg3****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// 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.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The validity period of the server certificate. Unit: years.
	//
	// example:
	//
	// 1
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (CreateServerCertificateRequest) GoString

func (*CreateServerCertificateRequest) SetAfterTime

func (*CreateServerCertificateRequest) SetAlgorithm

func (*CreateServerCertificateRequest) SetBeforeTime

func (*CreateServerCertificateRequest) SetCommonName

func (*CreateServerCertificateRequest) SetCountry

func (*CreateServerCertificateRequest) SetDays

func (*CreateServerCertificateRequest) SetDomain

func (*CreateServerCertificateRequest) SetEnableCrl added in v1.0.16

func (*CreateServerCertificateRequest) SetImmediately

func (*CreateServerCertificateRequest) SetLocality

func (*CreateServerCertificateRequest) SetMonths

func (*CreateServerCertificateRequest) SetOrganization

func (*CreateServerCertificateRequest) SetOrganizationUnit

func (*CreateServerCertificateRequest) SetParentIdentifier

func (*CreateServerCertificateRequest) SetState

func (*CreateServerCertificateRequest) SetYears

func (CreateServerCertificateRequest) String

type CreateServerCertificateResponse

type CreateServerCertificateResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateServerCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateServerCertificateResponse) GoString

func (*CreateServerCertificateResponse) SetHeaders

func (*CreateServerCertificateResponse) SetStatusCode

func (CreateServerCertificateResponse) String

type CreateServerCertificateResponseBody

type CreateServerCertificateResponseBody struct {
	// The certificate chain of the server certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the server certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The serial number of the server certificate.
	//
	// example:
	//
	// 0f29522da2dae7a1c4b6ab7132ad3c06
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The content of the server certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (CreateServerCertificateResponseBody) GoString

func (*CreateServerCertificateResponseBody) SetCertificateChain

func (*CreateServerCertificateResponseBody) SetIdentifier

func (*CreateServerCertificateResponseBody) SetRequestId

func (*CreateServerCertificateResponseBody) SetSerialNumber added in v1.0.14

func (*CreateServerCertificateResponseBody) SetX509Certificate

func (CreateServerCertificateResponseBody) String

type CreateServerCertificateWithCsrRequest

type CreateServerCertificateWithCsrRequest struct {
	// 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.
	//
	// example:
	//
	// 1665819958
	AfterTime *int64 `json:"AfterTime,omitempty" xml:"AfterTime,omitempty"`
	// The key algorithm of the server certificate. The key algorithm is in the `<Encryption algorithm>_<Key length>` 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](https://help.aliyun.com/document_detail/328096.html) operation to query the key algorithm of an intermediate CA certificate.
	//
	// example:
	//
	// RSA_2048
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// 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.
	//
	// example:
	//
	// 1634283958
	BeforeTime *int64 `json:"BeforeTime,omitempty" xml:"BeforeTime,omitempty"`
	// The name of the certificate user. The user of a server certificate is a server. We recommend that you enter the domain name or IP address of the server.
	//
	// example:
	//
	// mtcsq.com
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located, such as CN or US.
	//
	// example:
	//
	// CN
	Country *string `json:"Country,omitempty" xml:"Country,omitempty"`
	// The content of the CSR.
	//
	// You can generate a CSR by using the OpenSSL tool or the Keytool tool. For more information, see [How do I create a CSR file?](https://help.aliyun.com/document_detail/42218.html)
	//
	// This parameter is required.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE REQUEST-----   ...... -----END CERTIFICATE REQUEST-----
	Csr *string `json:"Csr,omitempty" xml:"Csr,omitempty"`
	// 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 at the same time, 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](https://help.aliyun.com/document_detail/328096.html) operation to query the validity period of an intermediate CA certificate.
	//
	// example:
	//
	// 365
	Days *int32 `json:"Days,omitempty" xml:"Days,omitempty"`
	// 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 (,).
	//
	// example:
	//
	// example.com
	Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"`
	// include the CRL address.
	//
	// - 0- No
	//
	// - 1- Yes
	//
	// example:
	//
	// 1
	EnableCrl *int64 `json:"EnableCrl,omitempty" xml:"EnableCrl,omitempty"`
	// 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.
	//
	// example:
	//
	// 1
	Immediately *int32 `json:"Immediately,omitempty" xml:"Immediately,omitempty"`
	// 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.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The validity period of the server certificate. Unit: months.
	//
	// example:
	//
	// 12
	Months *int32 `json:"Months,omitempty" xml:"Months,omitempty"`
	// The name of the organization. Default value: Alibaba Inc.
	//
	// example:
	//
	// ec server o
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department. Default value: Aliyun CDN.
	//
	// example:
	//
	// IT
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the intermediate CA certificate from which the server certificate is issued.
	//
	// >  You can call the [DescribeCACertificateList](https://help.aliyun.com/document_detail/328095.html) operation to query the unique identifier of an intermediate CA certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// 270oe6bb538d538c70c01f81hfd3****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// 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.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The validity period of the server certificate. Unit: years.
	//
	// example:
	//
	// 1
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (CreateServerCertificateWithCsrRequest) GoString

func (*CreateServerCertificateWithCsrRequest) SetAfterTime

func (*CreateServerCertificateWithCsrRequest) SetAlgorithm

func (*CreateServerCertificateWithCsrRequest) SetBeforeTime

func (*CreateServerCertificateWithCsrRequest) SetCommonName

func (*CreateServerCertificateWithCsrRequest) SetCountry

func (*CreateServerCertificateWithCsrRequest) SetCsr

func (*CreateServerCertificateWithCsrRequest) SetDays

func (*CreateServerCertificateWithCsrRequest) SetDomain

func (*CreateServerCertificateWithCsrRequest) SetEnableCrl added in v1.0.16

func (*CreateServerCertificateWithCsrRequest) SetImmediately

func (*CreateServerCertificateWithCsrRequest) SetLocality

func (*CreateServerCertificateWithCsrRequest) SetMonths

func (*CreateServerCertificateWithCsrRequest) SetOrganization

func (*CreateServerCertificateWithCsrRequest) SetOrganizationUnit

func (*CreateServerCertificateWithCsrRequest) SetParentIdentifier

func (*CreateServerCertificateWithCsrRequest) SetState

func (*CreateServerCertificateWithCsrRequest) SetYears

func (CreateServerCertificateWithCsrRequest) String

type CreateServerCertificateWithCsrResponse

type CreateServerCertificateWithCsrResponse struct {
	Headers    map[string]*string                          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateServerCertificateWithCsrResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateServerCertificateWithCsrResponse) GoString

func (*CreateServerCertificateWithCsrResponse) SetHeaders

func (*CreateServerCertificateWithCsrResponse) SetStatusCode

func (CreateServerCertificateWithCsrResponse) String

type CreateServerCertificateWithCsrResponseBody

type CreateServerCertificateWithCsrResponseBody struct {
	// The certificate chain of the server certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the server certificate.
	//
	// example:
	//
	// 180ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 55C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The serial number of the server certificate.
	//
	// example:
	//
	// 084bde9cd233f0ddae33adc438cfbbbd****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The content of the server certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (CreateServerCertificateWithCsrResponseBody) GoString

func (*CreateServerCertificateWithCsrResponseBody) SetCertificateChain

func (*CreateServerCertificateWithCsrResponseBody) SetIdentifier

func (*CreateServerCertificateWithCsrResponseBody) SetRequestId

func (*CreateServerCertificateWithCsrResponseBody) SetSerialNumber added in v1.0.14

func (*CreateServerCertificateWithCsrResponseBody) SetX509Certificate

func (CreateServerCertificateWithCsrResponseBody) String

type CreateSubCACertificateRequest

type CreateSubCACertificateRequest struct {
	// The type of the key algorithm of the intermediate CA. The key algorithm is in the `<Encryption algorithm>_<Key length>` 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.
	//
	// 	- **SM2_256**: The signature algorithm is SM3WithSM2.
	//
	// The encryption algorithm of an intermediate CA certificate must be consistent with the encryption algorithm of a root CA certificate. The length of the keys can be different. For example, if the key algorithm of the root CA certificate is **RSA_2048**, the key algorithm of the intermediate CA certificate must be **RSA_1024**, **RSA_2048**, or **RSA_4096**.
	//
	// > You can call the [DescribeCACertificate](https://help.aliyun.com/document_detail/465954.html) operation to query the key algorithm of a root CA certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// RSA_2048
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The common name or abbreviation of the organization. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Aliyun
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country or region in which the organization is located. You can enter an alpha-2 or alpha-3 code. For example, you can use **CN*	- to indicate China and use **US*	- to indicate the United States.
	//
	// For more information about country codes, see the **"Country codes"*	- section in [Manage company profiles](https://help.aliyun.com/document_detail/198289.html).
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// CRL validity period: 1-365 days
	//
	// example:
	//
	// 30
	CrlDay *int32 `json:"CrlDay,omitempty" xml:"CrlDay,omitempty"`
	// Enable Crl Service.
	//
	// - 0- No
	//
	// - 1- Yes
	//
	// example:
	//
	// 1
	EnableCrl *bool `json:"EnableCrl,omitempty" xml:"EnableCrl,omitempty"`
	// The extended key usages of the certificate.
	ExtendedKeyUsages []*string `json:"ExtendedKeyUsages,omitempty" xml:"ExtendedKeyUsages,omitempty" type:"Repeated"`
	// The name of the city in which the organization is located. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The name of the organization that is associated with the intermediate CA certificate. You can enter the name of your enterprise or company. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Maizi Technology
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department or branch in the organization. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the root CA certificate.
	//
	// > You can call the [DescribeCACertificateList] operation to query the unique identifiers of all CA certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// 1a83bcbb89e562885e40aa0108f5****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The path length constraint of the certificate. Default value: 0.
	//
	// example:
	//
	// 0
	PathLenConstraint *int32 `json:"PathLenConstraint,omitempty" xml:"PathLenConstraint,omitempty"`
	// The name of the province or state in which the organization is located. The value can contain letters.
	//
	// This parameter is required.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The validity period of the intermediate CA certificate. Unit: years.
	//
	// We recommend that you set this parameter to 5 to 10.
	//
	// > The validity period of the intermediate CA certificate cannot exceed the validity period of the root CA certificate. You can call the [DescribeCACertificate]operation to query the validity period of a root CA certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// 5
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (CreateSubCACertificateRequest) GoString

func (*CreateSubCACertificateRequest) SetAlgorithm

func (*CreateSubCACertificateRequest) SetCommonName

func (*CreateSubCACertificateRequest) SetCountryCode

func (*CreateSubCACertificateRequest) SetCrlDay added in v1.0.16

func (*CreateSubCACertificateRequest) SetEnableCrl added in v1.0.16

func (*CreateSubCACertificateRequest) SetExtendedKeyUsages added in v1.0.15

func (*CreateSubCACertificateRequest) SetLocality

func (*CreateSubCACertificateRequest) SetOrganization

func (*CreateSubCACertificateRequest) SetOrganizationUnit

func (*CreateSubCACertificateRequest) SetParentIdentifier

func (*CreateSubCACertificateRequest) SetPathLenConstraint added in v1.0.15

func (*CreateSubCACertificateRequest) SetState

func (*CreateSubCACertificateRequest) SetYears

func (CreateSubCACertificateRequest) String

type CreateSubCACertificateResponse

type CreateSubCACertificateResponse struct {
	Headers    map[string]*string                  `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                              `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateSubCACertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateSubCACertificateResponse) GoString

func (*CreateSubCACertificateResponse) SetHeaders

func (*CreateSubCACertificateResponse) SetStatusCode

func (CreateSubCACertificateResponse) String

type CreateSubCACertificateResponseBody

type CreateSubCACertificateResponseBody struct {
	// The CA certificate in the PEM format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
	Certificate *string `json:"Certificate,omitempty" xml:"Certificate,omitempty"`
	// The certificate chain of the CA certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The unique identifier of the sub CA certificate created in this request.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of this call request is a unique identifier generated by Alibaba Cloud for the request, which can be used for troubleshooting and locating issues.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateSubCACertificateResponseBody) GoString

func (*CreateSubCACertificateResponseBody) SetCertificate

func (*CreateSubCACertificateResponseBody) SetCertificateChain

func (*CreateSubCACertificateResponseBody) SetIdentifier

func (*CreateSubCACertificateResponseBody) SetRequestId

func (CreateSubCACertificateResponseBody) String

type DeleteClientCertificateRequest

type DeleteClientCertificateRequest struct {
	// The unique identifier of the client certificate or server certificate that you want to delete. The status of the certificate must be **REVOKE**.
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers and status of all client certificates and server certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
}

func (DeleteClientCertificateRequest) GoString

func (*DeleteClientCertificateRequest) SetIdentifier

func (DeleteClientCertificateRequest) String

type DeleteClientCertificateResponse

type DeleteClientCertificateResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteClientCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteClientCertificateResponse) GoString

func (*DeleteClientCertificateResponse) SetHeaders

func (*DeleteClientCertificateResponse) SetStatusCode

func (DeleteClientCertificateResponse) String

type DeleteClientCertificateResponseBody

type DeleteClientCertificateResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteClientCertificateResponseBody) GoString

func (*DeleteClientCertificateResponseBody) SetRequestId

func (DeleteClientCertificateResponseBody) String

type DescribeCACertificateCountResponse

type DescribeCACertificateCountResponse struct {
	Headers    map[string]*string                      `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                  `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeCACertificateCountResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeCACertificateCountResponse) GoString

func (*DescribeCACertificateCountResponse) SetHeaders

func (*DescribeCACertificateCountResponse) SetStatusCode

func (DescribeCACertificateCountResponse) String

type DescribeCACertificateCountResponseBody

type DescribeCACertificateCountResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The number of created CA certificates, which includes root CA certificates and intermediate CA certificates.
	//
	// example:
	//
	// 2
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (DescribeCACertificateCountResponseBody) GoString

func (*DescribeCACertificateCountResponseBody) SetRequestId

func (*DescribeCACertificateCountResponseBody) SetTotalCount

func (DescribeCACertificateCountResponseBody) String

type DescribeCACertificateListRequest

type DescribeCACertificateListRequest struct {
	// The number of the page to return. Default value: **1**.
	//
	// example:
	//
	// 1
	CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
	// The unique identifier of the client certificate or server certificate that you want to revoke.
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers of all client certificates and server certificates.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The number of CA certificates to return on each page. Default value: **20**.
	//
	// example:
	//
	// 20
	ShowSize *int32 `json:"ShowSize,omitempty" xml:"ShowSize,omitempty"`
}

func (DescribeCACertificateListRequest) GoString

func (*DescribeCACertificateListRequest) SetCurrentPage

func (*DescribeCACertificateListRequest) SetIdentifier added in v1.0.16

func (*DescribeCACertificateListRequest) SetShowSize

func (DescribeCACertificateListRequest) String

type DescribeCACertificateListResponse

type DescribeCACertificateListResponse struct {
	Headers    map[string]*string                     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeCACertificateListResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeCACertificateListResponse) GoString

func (*DescribeCACertificateListResponse) SetHeaders

func (*DescribeCACertificateListResponse) SetStatusCode

func (DescribeCACertificateListResponse) String

type DescribeCACertificateListResponseBody

type DescribeCACertificateListResponseBody struct {
	// An array that consists of the details about the CA certificate.
	CertificateList []*DescribeCACertificateListResponseBodyCertificateList `json:"CertificateList,omitempty" xml:"CertificateList,omitempty" type:"Repeated"`
	// The page number of the returned page.
	//
	// example:
	//
	// 1
	CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
	// The number of returned pages.
	//
	// example:
	//
	// 1
	PageCount *int32 `json:"PageCount,omitempty" xml:"PageCount,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The number of CA certificates returned per page.
	//
	// example:
	//
	// 20
	ShowSize *int32 `json:"ShowSize,omitempty" xml:"ShowSize,omitempty"`
	// The total number of root CA certificates and intermediate CA certificates that are returned.
	//
	// example:
	//
	// 2
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (DescribeCACertificateListResponseBody) GoString

func (*DescribeCACertificateListResponseBody) SetCurrentPage

func (*DescribeCACertificateListResponseBody) SetPageCount

func (*DescribeCACertificateListResponseBody) SetRequestId

func (*DescribeCACertificateListResponseBody) SetShowSize

func (*DescribeCACertificateListResponseBody) SetTotalCount

func (DescribeCACertificateListResponseBody) String

type DescribeCACertificateListResponseBodyCertificateList

type DescribeCACertificateListResponseBodyCertificateList struct {
	// The expiration date of the CA certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1665819958000
	AfterDate *int64 `json:"AfterDate,omitempty" xml:"AfterDate,omitempty"`
	// The encryption algorithm of the CA certificate. Valid values:
	//
	// 	- **RSA**: the Rivest-Shamir-Adleman (RSA) algorithm.
	//
	// 	- **ECC**: the elliptic curve cryptography (ECC) algorithm.
	//
	// 	- **SM2**: the SM2 algorithm, which is developed and approved by the State Cryptography Administration of China.
	//
	// example:
	//
	// RSA
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance date of the CA certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1634283958000
	BeforeDate *int64 `json:"BeforeDate,omitempty" xml:"BeforeDate,omitempty"`
	// The type of the CA certificate. Valid values:
	//
	// 	- **ROOT**: root CA certificate
	//
	// 	- **SUB_ROOT**: intermediate CA certificate
	//
	// example:
	//
	// SUB_ROOT
	CertificateType *string `json:"CertificateType,omitempty" xml:"CertificateType,omitempty"`
	// The common name or abbreviation of the organization that is associated with the CA certificate.
	//
	// example:
	//
	// Aliyun
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located.
	//
	// For more information about country codes, see the **"Country codes"*	- section of the [Manage company profiles](https://help.aliyun.com/document_detail/198289.html) topic.
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// The unique identifier of the CA certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The key length of the CA certificate.
	//
	// example:
	//
	// 2048
	KeySize *int32 `json:"KeySize,omitempty" xml:"KeySize,omitempty"`
	// The name of the city in which the organization is located.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The MD5 fingerprint of the CA certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Md5 *string `json:"Md5,omitempty" xml:"Md5,omitempty"`
	// The name of the organization that is associated with the CA certificate.
	//
	// example:
	//
	// Alibaba Cloud Computing Co., Ltd.
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department or branch in the organization that is associated with the CA certificate.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the root CA certificate from which the CA certificate is issued.
	//
	// >  This parameter is returned only if the value of the **CertificateType*	- parameter is **SUB_ROOT**. The value SUB_ROOT indicates an intermediate CA certificate.
	//
	// example:
	//
	// 1a83bcbb89e562885e40aa0108f5****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// This parameter is deprecated.
	//
	// example:
	//
	// 1
	Sans *string `json:"Sans,omitempty" xml:"Sans,omitempty"`
	// The serial number of the CA certificate.
	//
	// example:
	//
	// 70e3b2566d92805173767869727fb92e****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The SHA-256 fingerprint of the CA certificate.
	//
	// example:
	//
	// 14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9****
	Sha2 *string `json:"Sha2,omitempty" xml:"Sha2,omitempty"`
	// The signature algorithm of the CA certificate.
	//
	// example:
	//
	// SHA256WITHRSA
	SignAlgorithm *string `json:"SignAlgorithm,omitempty" xml:"SignAlgorithm,omitempty"`
	// The name of the province, municipality, or autonomous region in which the organization is located.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The status of the CA certificate. Valid values:
	//
	// 	- **ISSUE**: The CA certificate is issued.
	//
	// 	- **REVOKE**: The CA certificate is revoked.
	//
	// example:
	//
	// ISSUE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The Distinguished Name (DN) attribute of the CA certificate, which indicates the user information of the certificate. The DN attribute contains the following information:
	//
	// 	- **C**: the country code in which the organization is located
	//
	// 	- **O**: the name of the organization
	//
	// 	- **OU**: the name of the department or branch in the organization
	//
	// 	- **L**: the name of the city in which the organization is located
	//
	// 	- **CN**: the common name or abbreviation of the organization
	//
	// example:
	//
	// C=CN,O=Alibaba Cloud Computing Co., Ltd.,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun
	SubjectDN *string `json:"SubjectDN,omitempty" xml:"SubjectDN,omitempty"`
	// The content of the CA certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE----- …… -----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
	// The validity period of the CA certificate. Unit: years.
	//
	// example:
	//
	// 3
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (DescribeCACertificateListResponseBodyCertificateList) GoString

func (*DescribeCACertificateListResponseBodyCertificateList) SetAfterDate

func (*DescribeCACertificateListResponseBodyCertificateList) SetAlgorithm

func (*DescribeCACertificateListResponseBodyCertificateList) SetBeforeDate

func (*DescribeCACertificateListResponseBodyCertificateList) SetCertificateType

func (*DescribeCACertificateListResponseBodyCertificateList) SetCommonName

func (*DescribeCACertificateListResponseBodyCertificateList) SetCountryCode

func (*DescribeCACertificateListResponseBodyCertificateList) SetIdentifier

func (*DescribeCACertificateListResponseBodyCertificateList) SetKeySize

func (*DescribeCACertificateListResponseBodyCertificateList) SetLocality

func (*DescribeCACertificateListResponseBodyCertificateList) SetMd5

func (*DescribeCACertificateListResponseBodyCertificateList) SetOrganization

func (*DescribeCACertificateListResponseBodyCertificateList) SetOrganizationUnit

func (*DescribeCACertificateListResponseBodyCertificateList) SetParentIdentifier

func (*DescribeCACertificateListResponseBodyCertificateList) SetSans

func (*DescribeCACertificateListResponseBodyCertificateList) SetSerialNumber

func (*DescribeCACertificateListResponseBodyCertificateList) SetSha2

func (*DescribeCACertificateListResponseBodyCertificateList) SetSignAlgorithm

func (*DescribeCACertificateListResponseBodyCertificateList) SetState

func (*DescribeCACertificateListResponseBodyCertificateList) SetStatus

func (*DescribeCACertificateListResponseBodyCertificateList) SetSubjectDN

func (*DescribeCACertificateListResponseBodyCertificateList) SetX509Certificate

func (*DescribeCACertificateListResponseBodyCertificateList) SetYears

func (DescribeCACertificateListResponseBodyCertificateList) String

type DescribeCACertificateRequest

type DescribeCACertificateRequest struct {
	// The unique identifier of the CA certificate that you want to query.
	//
	// >  You can call the [DescribeCACertificateList](https://help.aliyun.com/document_detail/328095.html) operation to query the unique identifiers of all CA certificates.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
}

func (DescribeCACertificateRequest) GoString

func (s DescribeCACertificateRequest) GoString() string

func (*DescribeCACertificateRequest) SetIdentifier

func (DescribeCACertificateRequest) String

type DescribeCACertificateResponse

type DescribeCACertificateResponse struct {
	Headers    map[string]*string                 `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                             `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeCACertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeCACertificateResponse) GoString

func (*DescribeCACertificateResponse) SetBody

func (*DescribeCACertificateResponse) SetHeaders

func (*DescribeCACertificateResponse) SetStatusCode

func (DescribeCACertificateResponse) String

type DescribeCACertificateResponseBody

type DescribeCACertificateResponseBody struct {
	// The details about the CA certificate.
	Certificate *DescribeCACertificateResponseBodyCertificate `json:"Certificate,omitempty" xml:"Certificate,omitempty" type:"Struct"`
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The validity period of the CA certificate. Unit: years.
	//
	// example:
	//
	// 10
	Years *int32 `json:"Years,omitempty" xml:"Years,omitempty"`
}

func (DescribeCACertificateResponseBody) GoString

func (*DescribeCACertificateResponseBody) SetRequestId

func (*DescribeCACertificateResponseBody) SetYears

func (DescribeCACertificateResponseBody) String

type DescribeCACertificateResponseBodyCertificate

type DescribeCACertificateResponseBodyCertificate struct {
	// The expiration date of the CA certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1665819958000
	AfterDate *int64 `json:"AfterDate,omitempty" xml:"AfterDate,omitempty"`
	// The encryption algorithm of the CA certificate. Valid values:
	//
	// 	- **RSA**: the Rivest-Shamir-Adleman (RSA) algorithm.
	//
	// 	- **ECC**: the elliptic curve cryptography (ECC) algorithm.
	//
	// 	- **SM2**: the SM2 algorithm, which is developed and approved by the State Cryptography Administration of China.
	//
	// example:
	//
	// RSA
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance date of the CA certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1634283958000
	BeforeDate *int64 `json:"BeforeDate,omitempty" xml:"BeforeDate,omitempty"`
	// CA certificate chain.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----
	//
	// 用户证书
	//
	// -----END CERTIFICATE-----
	//
	// -----BEGIN CERTIFICATE-----
	//
	// 中间证书
	//
	// -----END CERTIFICATE-----
	//
	// -----BEGIN CERTIFICATE-----
	//
	// 根证书
	//
	// -----END CERTIFICATE-----
	CaCertChain *string `json:"CaCertChain,omitempty" xml:"CaCertChain,omitempty"`
	// The number of certificates issued by private CA instances.
	//
	// example:
	//
	// 10
	CertIssuedCount *int64 `json:"CertIssuedCount,omitempty" xml:"CertIssuedCount,omitempty"`
	// The remaining number of assignable certificate quotas.
	//
	// example:
	//
	// 30
	CertRemainingCount *int64 `json:"CertRemainingCount,omitempty" xml:"CertRemainingCount,omitempty"`
	// The total number of purchased certificate quotas.
	//
	// example:
	//
	// 40
	CertTotalCount *int64 `json:"CertTotalCount,omitempty" xml:"CertTotalCount,omitempty"`
	// The type of the CA certificate. Valid values:
	//
	// 	- **ROOT**: root CA certificate
	//
	// 	- **SUB_ROOT**: intermediate CA certificate
	//
	// example:
	//
	// SUB_ROOT
	CertificateType *string `json:"CertificateType,omitempty" xml:"CertificateType,omitempty"`
	// The common name or abbreviation of the organization that is associated with the CA certificate.
	//
	// example:
	//
	// Aliyun
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located.
	//
	// For more information about country codes, see the **"Country codes"*	- section of the [Manage company profiles](https://help.aliyun.com/document_detail/198289.html) topic.
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// CRL validity period: 1-365 days.
	//
	// example:
	//
	// 90
	CrlDay *int32 `json:"CrlDay,omitempty" xml:"CrlDay,omitempty"`
	// The status of the certificate revocation list (CRL) feature.
	//
	// example:
	//
	// ACTIVE
	CrlStatus *string `json:"CrlStatus,omitempty" xml:"CrlStatus,omitempty"`
	// The address of the CRL.
	//
	// example:
	//
	// https://crl-cn-publish.oss-cn-hangzhou.aliyuncs.com/pca/crl/1925647866611395/1ed40789-483f-6023-b6b8-29ddd3bb0a9a.crl
	CrlUrl *string `json:"CrlUrl,omitempty" xml:"CrlUrl,omitempty"`
	// The unique identifier of the CA certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The key length of the CA certificate.
	//
	// example:
	//
	// 2048
	KeySize *int32 `json:"KeySize,omitempty" xml:"KeySize,omitempty"`
	// The name of the city in which the organization is located.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The MD5 fingerprint of the CA certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Md5 *string `json:"Md5,omitempty" xml:"Md5,omitempty"`
	// The name of the organization that is associated with the CA certificate.
	//
	// example:
	//
	// Alibaba Cloud Computing Co., Ltd.
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department or branch in the organization that is associated with the CA certificate.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the root CA certificate from which the CA certificate is issued.
	//
	// >  This parameter is returned only if the value of the **CertificateType*	- parameter is **SUB_ROOT**. The value SUB_ROOT indicates an intermediate CA certificate.
	//
	// example:
	//
	// 1a83bcbb89e562885e40aa0108f5****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// This parameter is deprecated.
	//
	// example:
	//
	// 1
	Sans *string `json:"Sans,omitempty" xml:"Sans,omitempty"`
	// The serial number of the CA certificate.
	//
	// example:
	//
	// 70e3b2566d92805173767869727fb92e****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The SHA-256 fingerprint of the CA certificate.
	//
	// example:
	//
	// 14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9****
	Sha2 *string `json:"Sha2,omitempty" xml:"Sha2,omitempty"`
	// The signature algorithm of the CA certificate.
	//
	// example:
	//
	// SHA256WITHRSA
	SignAlgorithm *string `json:"SignAlgorithm,omitempty" xml:"SignAlgorithm,omitempty"`
	// The name of the province, municipality, or autonomous region in which the organization is located.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The status of the CA certificate. Valid values:
	//
	// 	- **ISSUE**: The CA certificate is issued.
	//
	// 	- **REVOKE**: The CA certificate is revoked.
	//
	// example:
	//
	// ISSUE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The user attribute of the CA certificate, which contains the following information:
	//
	// 	- **C**: the country code in which the organization is located
	//
	// 	- **O**: the name of the organization
	//
	// 	- **OU**: the name of the department or branch in the organization
	//
	// 	- **L**: the name of the city in which the organization is located
	//
	// 	- **ST**: the name of the province, municipality, or autonomous region in which the organization is located
	//
	// 	- **CN**: the common name or abbreviation of the organization
	//
	// example:
	//
	// C=CN,O=Alibaba Cloud Computing Co., Ltd.,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun
	SubjectDN *string `json:"SubjectDN,omitempty" xml:"SubjectDN,omitempty"`
	// The content of the CA certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE----- …… -----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (DescribeCACertificateResponseBodyCertificate) GoString

func (*DescribeCACertificateResponseBodyCertificate) SetAfterDate

func (*DescribeCACertificateResponseBodyCertificate) SetAlgorithm

func (*DescribeCACertificateResponseBodyCertificate) SetBeforeDate

func (*DescribeCACertificateResponseBodyCertificate) SetCaCertChain added in v1.0.16

func (*DescribeCACertificateResponseBodyCertificate) SetCertIssuedCount added in v1.0.16

func (*DescribeCACertificateResponseBodyCertificate) SetCertRemainingCount added in v1.0.16

func (*DescribeCACertificateResponseBodyCertificate) SetCertTotalCount added in v1.0.16

func (*DescribeCACertificateResponseBodyCertificate) SetCertificateType

func (*DescribeCACertificateResponseBodyCertificate) SetCommonName

func (*DescribeCACertificateResponseBodyCertificate) SetCountryCode

func (*DescribeCACertificateResponseBodyCertificate) SetCrlDay added in v1.0.16

func (*DescribeCACertificateResponseBodyCertificate) SetCrlStatus

func (*DescribeCACertificateResponseBodyCertificate) SetCrlUrl

func (*DescribeCACertificateResponseBodyCertificate) SetIdentifier

func (*DescribeCACertificateResponseBodyCertificate) SetKeySize

func (*DescribeCACertificateResponseBodyCertificate) SetLocality

func (*DescribeCACertificateResponseBodyCertificate) SetMd5

func (*DescribeCACertificateResponseBodyCertificate) SetOrganization

func (*DescribeCACertificateResponseBodyCertificate) SetOrganizationUnit

func (*DescribeCACertificateResponseBodyCertificate) SetParentIdentifier

func (*DescribeCACertificateResponseBodyCertificate) SetSans

func (*DescribeCACertificateResponseBodyCertificate) SetSerialNumber

func (*DescribeCACertificateResponseBodyCertificate) SetSha2

func (*DescribeCACertificateResponseBodyCertificate) SetSignAlgorithm

func (*DescribeCACertificateResponseBodyCertificate) SetState

func (*DescribeCACertificateResponseBodyCertificate) SetStatus

func (*DescribeCACertificateResponseBodyCertificate) SetSubjectDN

func (*DescribeCACertificateResponseBodyCertificate) SetX509Certificate

func (DescribeCACertificateResponseBodyCertificate) String

type DescribeCertificatePrivateKeyRequest

type DescribeCertificatePrivateKeyRequest struct {
	// The password that is used to encrypt the private key. The password can contain letters, digits, and special characters, such as `, + - _ #`. The password can be up to 32 bytes in length.
	//
	// **Warning*	- You must remember the password that you specify. The password is required to decrypt the encrypted private key. If you forget the password, the encrypted private key that is returned cannot be decrypted. You must call this operation again.
	//
	// This parameter is required.
	//
	// example:
	//
	// !QA@WS3ed
	EncryptedCode *string `json:"EncryptedCode,omitempty" xml:"EncryptedCode,omitempty"`
	// The unique identifier of the client certificate or server certificate that you want to query.
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers of all client certificates and server certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// bc37133bb7ed68c7938d928fd26d****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
}

func (DescribeCertificatePrivateKeyRequest) GoString

func (*DescribeCertificatePrivateKeyRequest) SetEncryptedCode

func (*DescribeCertificatePrivateKeyRequest) SetIdentifier

func (DescribeCertificatePrivateKeyRequest) String

type DescribeCertificatePrivateKeyResponse

type DescribeCertificatePrivateKeyResponse struct {
	Headers    map[string]*string                         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeCertificatePrivateKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeCertificatePrivateKeyResponse) GoString

func (*DescribeCertificatePrivateKeyResponse) SetHeaders

func (*DescribeCertificatePrivateKeyResponse) SetStatusCode

func (DescribeCertificatePrivateKeyResponse) String

type DescribeCertificatePrivateKeyResponseBody

type DescribeCertificatePrivateKeyResponseBody struct {
	// The content of the encrypted private key.
	//
	// example:
	//
	// -----BEGIN ENCRYPTED PRIVATE KEY----- …… -----END ENCRYPTED PRIVATE KEY-----
	EncryptedData *string `json:"EncryptedData,omitempty" xml:"EncryptedData,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 09470F19-CEE8-5C63-BF2C-02B5E3F07A17
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeCertificatePrivateKeyResponseBody) GoString

func (*DescribeCertificatePrivateKeyResponseBody) SetEncryptedData

func (*DescribeCertificatePrivateKeyResponseBody) SetRequestId

func (DescribeCertificatePrivateKeyResponseBody) String

type DescribeClientCertificateRequest

type DescribeClientCertificateRequest struct {
	// The unique identifier of the client certificate or the server certificate that you want to query.
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers of all client certificates and server certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// d3b95700998e47afc4d95f886579****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
}

func (DescribeClientCertificateRequest) GoString

func (*DescribeClientCertificateRequest) SetIdentifier

func (DescribeClientCertificateRequest) String

type DescribeClientCertificateResponse

type DescribeClientCertificateResponse struct {
	Headers    map[string]*string                     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeClientCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeClientCertificateResponse) GoString

func (*DescribeClientCertificateResponse) SetHeaders

func (*DescribeClientCertificateResponse) SetStatusCode

func (DescribeClientCertificateResponse) String

type DescribeClientCertificateResponseBody

type DescribeClientCertificateResponseBody struct {
	// The details about the client certificate or the server certificate.
	Certificate *DescribeClientCertificateResponseBodyCertificate `json:"Certificate,omitempty" xml:"Certificate,omitempty" type:"Struct"`
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeClientCertificateResponseBody) GoString

func (*DescribeClientCertificateResponseBody) SetRequestId

func (DescribeClientCertificateResponseBody) String

type DescribeClientCertificateResponseBodyCertificate

type DescribeClientCertificateResponseBodyCertificate struct {
	// The expiration date of the certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1665819958000
	AfterDate *int64 `json:"AfterDate,omitempty" xml:"AfterDate,omitempty"`
	// The type of the encryption algorithm of the certificate. Valid values:
	//
	// 	- **RSA**: the Rivest-Shamir-Adleman (RSA) algorithm.
	//
	// 	- **ECC**: the elliptic curve cryptography (ECC) algorithm.
	//
	// 	- **SM2**: the SM2 algorithm, which is developed and approved by the State Cryptography Administration of China.
	//
	// example:
	//
	// RSA
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance date of the certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1634283958000
	BeforeDate *int64 `json:"BeforeDate,omitempty" xml:"BeforeDate,omitempty"`
	// The type of the certificate. Valid values:
	//
	// 	- **CLIENT**: client certificate
	//
	// 	- **SERVER**: server certificate
	//
	// example:
	//
	// SERVER
	CertificateType *string `json:"CertificateType,omitempty" xml:"CertificateType,omitempty"`
	// The common name of the certificate.
	//
	// example:
	//
	// aliyun.com
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// For more information about country codes, see the **"Country codes"*	- section of the [Manage company profiles](https://help.aliyun.com/document_detail/198289.html) topic.
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// The validity period of the certificate. Unit: days.
	//
	// example:
	//
	// 365
	Days *int32 `json:"Days,omitempty" xml:"Days,omitempty"`
	// The unique identifier of the certificate.
	//
	// example:
	//
	// d3b95700998e47afc4d95f886579****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The key length of the certificate.
	//
	// example:
	//
	// 4096
	KeySize *int32 `json:"KeySize,omitempty" xml:"KeySize,omitempty"`
	// The name of the city in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The MD5 fingerprint of the certificate.
	//
	// example:
	//
	// d3b95700998e47afc4d95f886579****
	Md5 *string `json:"Md5,omitempty" xml:"Md5,omitempty"`
	// The name of the organization. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Alibaba Cloud Computing Co., Ltd.
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department in the organization. The organization is associated with the intermediate certificate authority (CA) certificate from which the certificate is issued.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the intermediate certificate from which the client certificate is issued.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The subject alternative name (SAN) extension of the certificate. The value indicates additional information, including the additional domain names or IP addresses that are associated with the certificate.
	//
	// The value is a string that consists of JSON arrays. Each element in a JSON array is a JSON struct that corresponds to a SAN extension. A SAN extension struct contains the following parameters:
	//
	// 	- **Type**: the type of the extension. Data type: integer. Valid values:
	//
	//     	- **1**: an email address
	//
	//     	- **2**: a domain name
	//
	//     	- **6**: a Uniform Resource Identifier (URI)
	//
	//     	- **7**: an IP address
	//
	// 	- **Value**: the value of the extension. Data type: string.
	//
	// example:
	//
	// [ {"Type": 7, "Value": "192.0.XX.XX"}, {"Type": 2, "Value": "www.aliyundoc.com"}, ]
	Sans *string `json:"Sans,omitempty" xml:"Sans,omitempty"`
	// The serial number of the certificate.
	//
	// example:
	//
	// 62b2b943a32d96883a6650e672ea0276****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The SHA-256 fingerprint of the certificate.
	//
	// example:
	//
	// 14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9****
	Sha2 *string `json:"Sha2,omitempty" xml:"Sha2,omitempty"`
	// The signature algorithm of the certificate.
	//
	// example:
	//
	// SHA256WITHRSA
	SignAlgorithm *string `json:"SignAlgorithm,omitempty" xml:"SignAlgorithm,omitempty"`
	// The name of the province, municipality, or autonomous region in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The status of the certificate. Valid values:
	//
	// 	- **ISSUE**: issued
	//
	// 	- **REVOKE**: revoked
	//
	// example:
	//
	// ISSUE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The distinguished name (DN) extension of the certificate, which indicates the user of the certificate. The DN extension includes the following information:
	//
	// 	- **C**: the country
	//
	// 	- **O**: the organization
	//
	// 	- **OU**: the department
	//
	// 	- **L**: the city
	//
	// 	- **ST**: the province, municipality, or autonomous region
	//
	// 	- **CN**: the common name
	//
	// example:
	//
	// C=CN,O=Alibaba Cloud Computing Co., Ltd.,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun
	SubjectDN *string `json:"SubjectDN,omitempty" xml:"SubjectDN,omitempty"`
	// The content of the certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----  ...... -----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (DescribeClientCertificateResponseBodyCertificate) GoString

func (*DescribeClientCertificateResponseBodyCertificate) SetAfterDate

func (*DescribeClientCertificateResponseBodyCertificate) SetAlgorithm

func (*DescribeClientCertificateResponseBodyCertificate) SetBeforeDate

func (*DescribeClientCertificateResponseBodyCertificate) SetCertificateType

func (*DescribeClientCertificateResponseBodyCertificate) SetCommonName

func (*DescribeClientCertificateResponseBodyCertificate) SetCountryCode

func (*DescribeClientCertificateResponseBodyCertificate) SetDays

func (*DescribeClientCertificateResponseBodyCertificate) SetIdentifier

func (*DescribeClientCertificateResponseBodyCertificate) SetKeySize

func (*DescribeClientCertificateResponseBodyCertificate) SetLocality

func (*DescribeClientCertificateResponseBodyCertificate) SetMd5

func (*DescribeClientCertificateResponseBodyCertificate) SetOrganization

func (*DescribeClientCertificateResponseBodyCertificate) SetOrganizationUnit

func (*DescribeClientCertificateResponseBodyCertificate) SetParentIdentifier

func (*DescribeClientCertificateResponseBodyCertificate) SetSans

func (*DescribeClientCertificateResponseBodyCertificate) SetSerialNumber

func (*DescribeClientCertificateResponseBodyCertificate) SetSha2

func (*DescribeClientCertificateResponseBodyCertificate) SetSignAlgorithm

func (*DescribeClientCertificateResponseBodyCertificate) SetState

func (*DescribeClientCertificateResponseBodyCertificate) SetStatus

func (*DescribeClientCertificateResponseBodyCertificate) SetSubjectDN

func (*DescribeClientCertificateResponseBodyCertificate) SetX509Certificate

func (DescribeClientCertificateResponseBodyCertificate) String

type DescribeClientCertificateStatusRequest

type DescribeClientCertificateStatusRequest struct {
	// The unique identifiers of the client certificates or server certificates that you want to query. Separate multiple unique identifiers with commas (,).
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers of all client certificates and server certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
}

func (DescribeClientCertificateStatusRequest) GoString

func (*DescribeClientCertificateStatusRequest) SetIdentifier

func (DescribeClientCertificateStatusRequest) String

type DescribeClientCertificateStatusResponse

type DescribeClientCertificateStatusResponse struct {
	Headers    map[string]*string                           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeClientCertificateStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeClientCertificateStatusResponse) GoString

func (*DescribeClientCertificateStatusResponse) SetHeaders

func (*DescribeClientCertificateStatusResponse) SetStatusCode

func (DescribeClientCertificateStatusResponse) String

type DescribeClientCertificateStatusResponseBody

type DescribeClientCertificateStatusResponseBody struct {
	// An array that consists of the status information about the certificates.
	CertificateStatus []*DescribeClientCertificateStatusResponseBodyCertificateStatus `json:"CertificateStatus,omitempty" xml:"CertificateStatus,omitempty" type:"Repeated"`
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeClientCertificateStatusResponseBody) GoString

func (*DescribeClientCertificateStatusResponseBody) SetRequestId

func (DescribeClientCertificateStatusResponseBody) String

type DescribeClientCertificateStatusResponseBodyCertificateStatus

type DescribeClientCertificateStatusResponseBodyCertificateStatus struct {
	// The date on which the certificate was revoked.
	//
	// >  This parameter is returned only when the value of the **Status*	- parameter is **revoked**. The value revoked indicates that the certificate is revoked.
	//
	// example:
	//
	// 2021-01-01T00:00Z
	RevokeTime *int64 `json:"RevokeTime,omitempty" xml:"RevokeTime,omitempty"`
	// The serial number of the certificate.
	//
	// example:
	//
	// b67e53ebcea9b77d65b0c3236646d715****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The status of the certificate. Valid values:
	//
	// 	- **good**: The certificate is not revoked.
	//
	// 	- **revoked**: The certificate is revoked.
	//
	// 	- **unknown**: The server cannot determine the status of the certificate.
	//
	// example:
	//
	// good
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (DescribeClientCertificateStatusResponseBodyCertificateStatus) GoString

func (*DescribeClientCertificateStatusResponseBodyCertificateStatus) SetRevokeTime

func (*DescribeClientCertificateStatusResponseBodyCertificateStatus) SetSerialNumber

func (*DescribeClientCertificateStatusResponseBodyCertificateStatus) SetStatus

func (DescribeClientCertificateStatusResponseBodyCertificateStatus) String

type GetCAInstanceStatusRequest

type GetCAInstanceStatusRequest struct {
	// The unique identifier of the certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the private CA instance.
	//
	// >  After you purchase a private CA instance by using the [SSL Certificates Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist), you can click **Details*	- for the private CA instance on the **Private Certificates*	- page to query the ID of the private CA instance.
	//
	// example:
	//
	// cas-member-0hmi****
	InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"`
}

func (GetCAInstanceStatusRequest) GoString

func (s GetCAInstanceStatusRequest) GoString() string

func (*GetCAInstanceStatusRequest) SetIdentifier added in v1.0.16

func (*GetCAInstanceStatusRequest) SetInstanceId

func (GetCAInstanceStatusRequest) String

type GetCAInstanceStatusResponse

type GetCAInstanceStatusResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetCAInstanceStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetCAInstanceStatusResponse) GoString

func (s GetCAInstanceStatusResponse) GoString() string

func (*GetCAInstanceStatusResponse) SetBody

func (*GetCAInstanceStatusResponse) SetHeaders

func (*GetCAInstanceStatusResponse) SetStatusCode

func (GetCAInstanceStatusResponse) String

type GetCAInstanceStatusResponseBody

type GetCAInstanceStatusResponseBody struct {
	// The status information of the private CA instance.
	InstanceStatusList []*GetCAInstanceStatusResponseBodyInstanceStatusList `json:"InstanceStatusList,omitempty" xml:"InstanceStatusList,omitempty" type:"Repeated"`
	// The ID of the request.
	//
	// example:
	//
	// 25589516-2A56-5159-AB88-4A1D9824E183
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetCAInstanceStatusResponseBody) GoString

func (*GetCAInstanceStatusResponseBody) SetRequestId

func (GetCAInstanceStatusResponseBody) String

type GetCAInstanceStatusResponseBodyInstanceStatusList

type GetCAInstanceStatusResponseBodyInstanceStatusList struct {
	// The expiration date of the private CA certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// >  This parameter is returned only when the value of the **Status*	- parameter is **USED*	- or **REVOKE**. The value USED indicates that the private CA instance is enabled, and the value REVOKE indicates that the instance is revoked.
	//
	// example:
	//
	// 1792944000000
	AfterTime *int64 `json:"AfterTime,omitempty" xml:"AfterTime,omitempty"`
	// The issuance date of the private CA certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// >  This parameter is returned only when the value of the **Status*	- parameter is **USED*	- or **REVOKE**. The value USED indicates that the private CA instance is enabled, and the value REVOKE indicates that the instance is revoked.
	//
	// example:
	//
	// 1635177600000
	BeforeTime *int64 `json:"BeforeTime,omitempty" xml:"BeforeTime,omitempty"`
	// The number of certificates that are issued by using the private CA instance.
	//
	// example:
	//
	// 1
	CertIssuedCount *int32 `json:"CertIssuedCount,omitempty" xml:"CertIssuedCount,omitempty"`
	// The number of certificates that can be issued by using the private CA instance.
	//
	// For a private root CA instance whose **Type*	- is **ROOT**, this parameter indicates the number of intermediate CA certificates that can be issued.
	//
	// For a private intermediate CA instance whose **Type*	- is **SUB_ROOT**, this parameter indicates the total number of client certificates and server certificates that can be issued
	//
	// example:
	//
	// 10
	CertTotalCount *int32 `json:"CertTotalCount,omitempty" xml:"CertTotalCount,omitempty"`
	// The unique identifier of the private CA certificate.
	//
	// >  This parameter is returned only when the value of the **Status*	- parameter is **USED*	- or **REVOKE**. The value USED indicates that the private CA instance is enabled, and the value REVOKE indicates that the instance is revoked.
	//
	// example:
	//
	// a7bb2dd212a2112128cd5cc9b753****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The ID of the private CA instance.
	//
	// example:
	//
	// cas-member-0hmi****
	InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"`
	// The status of the private CA instance. Valid values:
	//
	// 	- **BUY**: The private CA instance is purchased but is not enabled.
	//
	// 	- **USED**: The private CA instance is enabled.
	//
	// 	- **REFUND**: The private CA instance is refunded.
	//
	// 	- **REVOKE**: The private CA instance is revoked.
	//
	// example:
	//
	// USED
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The type of the private CA instance. Valid values:
	//
	// 	- **ROOT**: root CA instance
	//
	// 	- **SUB_ROOT**: intermediate CA instance
	//
	// example:
	//
	// ROOT
	Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
	// The expiration date of the private CA instance. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// >  This parameter corresponds to the duration that you select when you purchase the private CA instance. The duration indicates the subscription period of the Private Certificate Authority (PCA) service.
	//
	// example:
	//
	// 1637251200000
	UseExpireTime *int64 `json:"UseExpireTime,omitempty" xml:"UseExpireTime,omitempty"`
}

func (GetCAInstanceStatusResponseBodyInstanceStatusList) GoString

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetAfterTime

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetBeforeTime

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetCertIssuedCount

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetCertTotalCount

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetIdentifier

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetInstanceId

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetStatus

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetType

func (*GetCAInstanceStatusResponseBodyInstanceStatusList) SetUseExpireTime

func (GetCAInstanceStatusResponseBodyInstanceStatusList) String

type ListClientCertificateRequest

type ListClientCertificateRequest struct {
	// The number of the page to return. Default value: **1**.
	//
	// example:
	//
	// 1
	CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
	// The unique identifier of the client certificate or the server certificate that you want to query.
	//
	// >  You can call the [ListClientCertificate](https://help.aliyun.com/document_detail/330884.html) operation to query the unique identifiers of all client certificates and server certificates.
	//
	// example:
	//
	// 190ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The number of certificates to return on each page. Default value: **20**.
	//
	// example:
	//
	// 20
	ShowSize *int32 `json:"ShowSize,omitempty" xml:"ShowSize,omitempty"`
}

func (ListClientCertificateRequest) GoString

func (s ListClientCertificateRequest) GoString() string

func (*ListClientCertificateRequest) SetCurrentPage

func (*ListClientCertificateRequest) SetIdentifier added in v1.0.16

func (*ListClientCertificateRequest) SetShowSize

func (ListClientCertificateRequest) String

type ListClientCertificateResponse

type ListClientCertificateResponse struct {
	Headers    map[string]*string                 `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                             `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListClientCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListClientCertificateResponse) GoString

func (*ListClientCertificateResponse) SetBody

func (*ListClientCertificateResponse) SetHeaders

func (*ListClientCertificateResponse) SetStatusCode

func (ListClientCertificateResponse) String

type ListClientCertificateResponseBody

type ListClientCertificateResponseBody struct {
	// An array that consists of the details about all client certificates and server certificates.
	CertificateList []*ListClientCertificateResponseBodyCertificateList `json:"CertificateList,omitempty" xml:"CertificateList,omitempty" type:"Repeated"`
	// The page number of the current page.
	//
	// example:
	//
	// 1
	CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
	// The total number of pages returned.
	//
	// example:
	//
	// 1
	PageCount *int32 `json:"PageCount,omitempty" xml:"PageCount,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The number of certificates that are returned per page.
	//
	// example:
	//
	// 20
	ShowSize *int32 `json:"ShowSize,omitempty" xml:"ShowSize,omitempty"`
	// The number of client certificates and server certificates that are returned.
	//
	// example:
	//
	// 1
	TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListClientCertificateResponseBody) GoString

func (*ListClientCertificateResponseBody) SetCurrentPage

func (*ListClientCertificateResponseBody) SetPageCount

func (*ListClientCertificateResponseBody) SetRequestId

func (*ListClientCertificateResponseBody) SetShowSize

func (*ListClientCertificateResponseBody) SetTotalCount

func (ListClientCertificateResponseBody) String

type ListClientCertificateResponseBodyCertificateList

type ListClientCertificateResponseBodyCertificateList struct {
	// The expiration date of the certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1665819958000
	AfterDate *int64 `json:"AfterDate,omitempty" xml:"AfterDate,omitempty"`
	// The type of the encryption algorithm of the certificate. Valid values:
	//
	// 	- **RSA**: the Rivest-Shamir-Adleman (RSA) algorithm.
	//
	// 	- **ECC**: the elliptic curve cryptography (ECC) algorithm.
	//
	// 	- **SM2**: the SM2 algorithm, which is developed and approved by the State Cryptography Administration of China.
	//
	// example:
	//
	// RSA
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance date of the certificate. This value is a UNIX timestamp. Unit: milliseconds.
	//
	// example:
	//
	// 1634283958000
	BeforeDate *int64 `json:"BeforeDate,omitempty" xml:"BeforeDate,omitempty"`
	// The type of the certificate. Valid values:
	//
	// 	- **CLIENT**: client certificate
	//
	// 	- **SERVER**: server certificate
	//
	// example:
	//
	// SERVER
	CertificateType *string `json:"CertificateType,omitempty" xml:"CertificateType,omitempty"`
	// The common name of the certificate.
	//
	// example:
	//
	// aliyundoc.com
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// For more information about country codes, see the **"Country codes"*	- section of the [Manage company profiles](https://help.aliyun.com/document_detail/198289.html) topic.
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// The validity period of the certificate. Unit: days.
	//
	// example:
	//
	// 365
	Days *int32 `json:"Days,omitempty" xml:"Days,omitempty"`
	// The unique identifier of the certificate.
	//
	// example:
	//
	// d3b95700998e47afc4d95f886579****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The key length of the certificate.
	//
	// example:
	//
	// 4096
	KeySize *int32 `json:"KeySize,omitempty" xml:"KeySize,omitempty"`
	// The name of the city in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The MD5 fingerprint of the certificate.
	//
	// example:
	//
	// d3b95700998e47afc4d95f886579****
	Md5 *string `json:"Md5,omitempty" xml:"Md5,omitempty"`
	// The name of the organization. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Alibaba Cloud Computing Co., Ltd.
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department in the organization. The organization is associated with the intermediate certificate authority (CA) certificate from which the certificate is issued.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The unique identifier of the intermediate certificate from which the client certificate is issued.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The subject alternative name (SAN) extension of the certificate. The value indicates additional information, including the additional domain names or IP addresses that are associated with the certificate.
	//
	// The value is a string that consists of JSON arrays. Each element in a JSON array is a JSON struct that corresponds to a SAN extension. A SAN extension struct contains the following parameters:
	//
	// 	- **Type**: the type of the extension. Data type: integer. Valid values:
	//
	//     	- **1**: an email address
	//
	//     	- **2**: a domain name
	//
	//     	- **6**: a Uniform Resource Identifier (URI)
	//
	//     	- **7**: an IP address
	//
	// 	- **Value**: the value of the extension. Data type: string.
	//
	// example:
	//
	// [ {"Type": 7, "Value": "192.0.XX.XX"}, {"Type": 2, "Value": "www.aliyundoc.com"}, ]
	Sans *string `json:"Sans,omitempty" xml:"Sans,omitempty"`
	// The serial number of the certificate.
	//
	// example:
	//
	// 62b2b943a32d96883a6650e672ea0276****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The SHA-256 fingerprint of the certificate.
	//
	// example:
	//
	// 14dcc8afc7578e1fcec36d658f7e20de18f6957bbac42b373a66bc9de4e9****
	Sha2 *string `json:"Sha2,omitempty" xml:"Sha2,omitempty"`
	// The signature algorithm of the certificate.
	//
	// example:
	//
	// SHA256WITHRSA
	SignAlgorithm *string `json:"SignAlgorithm,omitempty" xml:"SignAlgorithm,omitempty"`
	// The name of the province, municipality, or autonomous region in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The status of the certificate. Valid values:
	//
	// 	- **ISSUE**: issued
	//
	// 	- **REVOKE**: revoked
	//
	// example:
	//
	// ISSUE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The distinguished name (DN) extension of the certificate, which indicates the user of the certificate. The DN extension includes the following information:
	//
	// 	- **C**: the country
	//
	// 	- **O**: the organization
	//
	// 	- **OU**: the department
	//
	// 	- **L**: the city
	//
	// 	- **ST**: the province, municipality, or autonomous region
	//
	// 	- **CN**: the common name
	//
	// example:
	//
	// C=CN,O=Alibaba Cloud Computing Co., Ltd.,OU=Security,L=Hangzhou,ST=Zhejiang,CN=Aliyun
	SubjectDN *string `json:"SubjectDN,omitempty" xml:"SubjectDN,omitempty"`
	// The content of the certificate.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----  ...... -----END CERTIFICATE-----
	X509Certificate *string `json:"X509Certificate,omitempty" xml:"X509Certificate,omitempty"`
}

func (ListClientCertificateResponseBodyCertificateList) GoString

func (*ListClientCertificateResponseBodyCertificateList) SetAfterDate

func (*ListClientCertificateResponseBodyCertificateList) SetAlgorithm

func (*ListClientCertificateResponseBodyCertificateList) SetBeforeDate

func (*ListClientCertificateResponseBodyCertificateList) SetCertificateType

func (*ListClientCertificateResponseBodyCertificateList) SetCommonName

func (*ListClientCertificateResponseBodyCertificateList) SetCountryCode

func (*ListClientCertificateResponseBodyCertificateList) SetDays

func (*ListClientCertificateResponseBodyCertificateList) SetIdentifier

func (*ListClientCertificateResponseBodyCertificateList) SetKeySize

func (*ListClientCertificateResponseBodyCertificateList) SetLocality

func (*ListClientCertificateResponseBodyCertificateList) SetMd5

func (*ListClientCertificateResponseBodyCertificateList) SetOrganization

func (*ListClientCertificateResponseBodyCertificateList) SetOrganizationUnit

func (*ListClientCertificateResponseBodyCertificateList) SetParentIdentifier

func (*ListClientCertificateResponseBodyCertificateList) SetSans

func (*ListClientCertificateResponseBodyCertificateList) SetSerialNumber

func (*ListClientCertificateResponseBodyCertificateList) SetSha2

func (*ListClientCertificateResponseBodyCertificateList) SetSignAlgorithm

func (*ListClientCertificateResponseBodyCertificateList) SetState

func (*ListClientCertificateResponseBodyCertificateList) SetStatus

func (*ListClientCertificateResponseBodyCertificateList) SetSubjectDN

func (*ListClientCertificateResponseBodyCertificateList) SetX509Certificate

func (ListClientCertificateResponseBodyCertificateList) String

type ListRevokeCertificateRequest

type ListRevokeCertificateRequest struct {
	// The number of the page to return. Default value: **1**.
	//
	// example:
	//
	// 1
	CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
	// The number of revoked certificates to return on each page. Default value: **20**.
	//
	// example:
	//
	// 20
	ShowSize *int32 `json:"ShowSize,omitempty" xml:"ShowSize,omitempty"`
}

func (ListRevokeCertificateRequest) GoString

func (s ListRevokeCertificateRequest) GoString() string

func (*ListRevokeCertificateRequest) SetCurrentPage

func (*ListRevokeCertificateRequest) SetShowSize

func (ListRevokeCertificateRequest) String

type ListRevokeCertificateResponse

type ListRevokeCertificateResponse struct {
	Headers    map[string]*string                 `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                             `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListRevokeCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListRevokeCertificateResponse) GoString

func (*ListRevokeCertificateResponse) SetBody

func (*ListRevokeCertificateResponse) SetHeaders

func (*ListRevokeCertificateResponse) SetStatusCode

func (ListRevokeCertificateResponse) String

type ListRevokeCertificateResponseBody

type ListRevokeCertificateResponseBody struct {
	// An array that consists of the details about the revoked client certificates or server certificates.
	CertificateList []*ListRevokeCertificateResponseBodyCertificateList `json:"CertificateList,omitempty" xml:"CertificateList,omitempty" type:"Repeated"`
	// The page number of the current page.
	//
	// example:
	//
	// 1
	CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
	// The total number of pages returned.
	//
	// example:
	//
	// 1
	PageCount *int32 `json:"PageCount,omitempty" xml:"PageCount,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The number of revoked certificates that are returned per page.
	//
	// example:
	//
	// 20
	ShowSize *int32 `json:"ShowSize,omitempty" xml:"ShowSize,omitempty"`
	// The total number of revoked client certificates and server certificates that are returned.
	//
	// example:
	//
	// 1
	TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListRevokeCertificateResponseBody) GoString

func (*ListRevokeCertificateResponseBody) SetCurrentPage

func (*ListRevokeCertificateResponseBody) SetPageCount

func (*ListRevokeCertificateResponseBody) SetRequestId

func (*ListRevokeCertificateResponseBody) SetShowSize

func (*ListRevokeCertificateResponseBody) SetTotalCount

func (ListRevokeCertificateResponseBody) String

type ListRevokeCertificateResponseBodyCertificateList

type ListRevokeCertificateResponseBodyCertificateList struct {
	// The expiration date of the certificate. The date is in the `yyyy-MM-ddT00:00Z` format. For example, the value `2021-12-31T00:00Z` indicates December 31, 2021.
	//
	// example:
	//
	// 2021-12-31T00:00Z
	AfterDate *string `json:"AfterDate,omitempty" xml:"AfterDate,omitempty"`
	// The type of the encryption algorithm of the certificate. Valid values:
	//
	// 	- **RSA**: the Rivest-Shamir-Adleman (RSA) algorithm.
	//
	// 	- **ECC**: the elliptic curve cryptography (ECC) algorithm.
	//
	// 	- **SM2**: the SM2 algorithm, which is developed and approved by the State Cryptography Administration of China.
	//
	// example:
	//
	// RSA
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The issuance date of the certificate. The date is in the `yyyy-MM-ddT00:00Z` format. For example, the value `2021-01-01T00:00Z` indicates January 1, 2021.
	//
	// example:
	//
	// 2021-01-01T00:00Z
	BeforeDate *string `json:"BeforeDate,omitempty" xml:"BeforeDate,omitempty"`
	// The type of the certificate.
	//
	// example:
	//
	// SERVER
	CertificateType *string `json:"CertificateType,omitempty" xml:"CertificateType,omitempty"`
	// The common name of the certificate.
	//
	// example:
	//
	// aliyundoc.com
	CommonName *string `json:"CommonName,omitempty" xml:"CommonName,omitempty"`
	// The code of the country in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// For more information about country codes, see the **"Country codes"*	- section of the [Manage company profiles](https://help.aliyun.com/document_detail/198289.html) topic.
	//
	// example:
	//
	// CN
	CountryCode *string `json:"CountryCode,omitempty" xml:"CountryCode,omitempty"`
	// The unique identifier of the certificate.
	//
	// example:
	//
	// 05e148d8d3ecc9976d9ecd2b2f25****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The key length of the certificate.
	//
	// example:
	//
	// 4096
	KeySize *int32 `json:"KeySize,omitempty" xml:"KeySize,omitempty"`
	// The name of the city in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Hangzhou
	Locality *string `json:"Locality,omitempty" xml:"Locality,omitempty"`
	// The MD5 fingerprint of the certificate.
	//
	// example:
	//
	// 05e148d8d3ecc9976d9ecd2b2f25****
	Md5 *string `json:"Md5,omitempty" xml:"Md5,omitempty"`
	// The name of the organization. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Alibaba Cloud Computing Co., Ltd.
	Organization *string `json:"Organization,omitempty" xml:"Organization,omitempty"`
	// The name of the department in the organization. The organization is associated with the intermediate certificate authority (CA) certificate from which the certificate is issued.
	//
	// example:
	//
	// Security
	OrganizationUnit *string `json:"OrganizationUnit,omitempty" xml:"OrganizationUnit,omitempty"`
	// The identifier of the root certificate.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	ParentIdentifier *string `json:"ParentIdentifier,omitempty" xml:"ParentIdentifier,omitempty"`
	// The date on which the certificate was revoked. The value is in the `yyyy-MM-ddT00:00Z` format. For example, the value `2021-09-01T00:00Z` indicates September 1, 2021.
	//
	// example:
	//
	// 2021-09-01T00:00Z
	RevokeDate *string `json:"RevokeDate,omitempty" xml:"RevokeDate,omitempty"`
	// The subject alternative name (SAN) extension of the certificate.
	//
	// The value is a string that consists of JSON arrays. Each element in a JSON array is a JSON struct that corresponds to a SAN extension. A SAN extension struct contains the following parameters:
	//
	// 	- **Type**: the type of the extension. Data type: integer. Valid values:
	//
	//     	- **1**: an email address
	//
	//     	- **2**: a domain name
	//
	//     	- **6**: a Uniform Resource Identifier (URI)
	//
	//     	- **7**: an IP address
	//
	// 	- **Value**: the value of the extension. Data type: string.
	//
	// example:
	//
	// [ {"Type": 7, "Value": "192.0.XX.XX"}, {"Type": 2, "Value": "www.aliyundoc.com"}, ]
	Sans *string `json:"Sans,omitempty" xml:"Sans,omitempty"`
	// The serial number of the certificate.
	//
	// example:
	//
	// 168b12c42e62339f8d2340ff530f9365****
	SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"`
	// The SHA-256 fingerprint of the certificate.
	//
	// example:
	//
	// b60eff7e04323ff662f9ab5e6986f849f626a9c7bf2c59dcc752fa23779a****
	Sha2 *string `json:"Sha2,omitempty" xml:"Sha2,omitempty"`
	// The signature algorithm of the certificate.
	//
	// example:
	//
	// SHA256WITHRSA
	SignAlgorithm *string `json:"SignAlgorithm,omitempty" xml:"SignAlgorithm,omitempty"`
	// The name of the province, municipality, or autonomous region in which the organization is located. The organization is associated with the intermediate certificate from which the certificate is issued.
	//
	// example:
	//
	// Zhejiang
	State *string `json:"State,omitempty" xml:"State,omitempty"`
	// The status.
	//
	// example:
	//
	// ISSUE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The distinguished name (DN) extension of the certificate, which indicates the user of the certificate. The DN extension includes the following information:
	//
	// 	- **C**: the country
	//
	// 	- **O**: the organization
	//
	// 	- **OU**: the department
	//
	// 	- **L**: the city
	//
	// 	- **ST**: the province, municipality, or autonomous region
	//
	// 	- **CN**: the common name
	//
	// example:
	//
	// C=CN,O=Alibaba Cloud Computing Co., Ltd.,OU=Security,L=ZheJiang,ST=HangZhou,CN=aliyundoc.com
	SubjectDN *string `json:"SubjectDN,omitempty" xml:"SubjectDN,omitempty"`
}

func (ListRevokeCertificateResponseBodyCertificateList) GoString

func (*ListRevokeCertificateResponseBodyCertificateList) SetAfterDate

func (*ListRevokeCertificateResponseBodyCertificateList) SetAlgorithm

func (*ListRevokeCertificateResponseBodyCertificateList) SetBeforeDate

func (*ListRevokeCertificateResponseBodyCertificateList) SetCertificateType

func (*ListRevokeCertificateResponseBodyCertificateList) SetCommonName

func (*ListRevokeCertificateResponseBodyCertificateList) SetCountryCode

func (*ListRevokeCertificateResponseBodyCertificateList) SetIdentifier

func (*ListRevokeCertificateResponseBodyCertificateList) SetKeySize

func (*ListRevokeCertificateResponseBodyCertificateList) SetLocality

func (*ListRevokeCertificateResponseBodyCertificateList) SetMd5

func (*ListRevokeCertificateResponseBodyCertificateList) SetOrganization

func (*ListRevokeCertificateResponseBodyCertificateList) SetOrganizationUnit

func (*ListRevokeCertificateResponseBodyCertificateList) SetParentIdentifier

func (*ListRevokeCertificateResponseBodyCertificateList) SetRevokeDate

func (*ListRevokeCertificateResponseBodyCertificateList) SetSans

func (*ListRevokeCertificateResponseBodyCertificateList) SetSerialNumber

func (*ListRevokeCertificateResponseBodyCertificateList) SetSha2

func (*ListRevokeCertificateResponseBodyCertificateList) SetSignAlgorithm

func (*ListRevokeCertificateResponseBodyCertificateList) SetState

func (*ListRevokeCertificateResponseBodyCertificateList) SetStatus

func (*ListRevokeCertificateResponseBodyCertificateList) SetSubjectDN

func (ListRevokeCertificateResponseBodyCertificateList) String

type UpdateCACertificateStatusRequest

type UpdateCACertificateStatusRequest struct {
	// The unique identifier of the CA certificate whose status you want to change.
	//
	// >  You can call the [DescribeCACertificateList](https://help.aliyun.com/document_detail/328095.html) operation to query the unique identifiers of all CA certificates.
	//
	// This parameter is required.
	//
	// example:
	//
	// 160ae6bb538d538c70c01f81dcf2****
	Identifier *string `json:"Identifier,omitempty" xml:"Identifier,omitempty"`
	// The state to which you want to change the CA certificate. Set to the value to **REVOKE**. After this operation is called, the status of the CA certificate is changed to **REVOKE**.
	//
	// >  You can call this operation only if the status of a CA certificate is **ISSUE**. You can call the [DescribeCACertificate](https://help.aliyun.com/document_detail/328096.html) operation to query the status of a CA certificate.
	//
	// This parameter is required.
	//
	// example:
	//
	// REVOKE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (UpdateCACertificateStatusRequest) GoString

func (*UpdateCACertificateStatusRequest) SetIdentifier

func (*UpdateCACertificateStatusRequest) SetStatus

func (UpdateCACertificateStatusRequest) String

type UpdateCACertificateStatusResponse

type UpdateCACertificateStatusResponse struct {
	Headers    map[string]*string                     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateCACertificateStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateCACertificateStatusResponse) GoString

func (*UpdateCACertificateStatusResponse) SetHeaders

func (*UpdateCACertificateStatusResponse) SetStatusCode

func (UpdateCACertificateStatusResponse) String

type UpdateCACertificateStatusResponseBody

type UpdateCACertificateStatusResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 15C66C7B-671A-4297-9187-2C4477247A74
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateCACertificateStatusResponseBody) GoString

func (*UpdateCACertificateStatusResponseBody) SetRequestId

func (UpdateCACertificateStatusResponseBody) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL