All Products
Search
Document Center

Certificate Management Service:ListCsr

Last Updated:Jun 25, 2024

Queries certificate signing requests (CSRs).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
KeyWordstringNo

The keyword.

test_name
AlgorithmstringNo

The algorithm. Valid values: RSA, ECC, and SM2.

RSA
CurrentPagelongNo

The page number.

1
ShowSizelongNo

The number of entries per page. Default value: 50.

10

Response parameters

ParameterTypeDescriptionExample
object

The object.

ShowSizelong

The number of entries per page. Default value: 50.

10
CurrentPagelong

The page number.

1
TotalCountlong

The total number of entries returned.

10
CsrListobject []

The CSRs.

CsrIdlong

The ID of the CSR.

3454
Algorithmstring

The algorithm. Valid values: RSA, SM2, and ECC.

RSA
KeySizeinteger

The key length that is used by the algorithm. The key length for RSA algorithms can be 2,048, 3,072, and 4,096 bits. The key length for ECC and SM2 algorithms can be 256 bits.

2048
KeySha2string

The public key that is calculated by using the SHA256 algorithm.

1234
CommonNamestring

The primary domain name, which is a common name.

example.com
Sansstring

The secondary domain names. Separate multiple domain names with commas (,).

www.example.com,www.aliyundoc.com
CountryCodestring

The code of the country or region in which the organization is located. For example, you can use CN to indicate China and use US to indicate the United States. The default value is the code of the country or region in which the organization is located. The organization is associated with the intermediate CA certificate from which the certificate is issued. For more information about country codes, see the "Country codes" section of the Manage company profiles topic.

CN
Provincestring

The province or location.

Beijing
Localitystring

The city where the company is located.

Beijing
CorpNamestring

The name of the company.

Departmentstring

The department that uses the certificate.

IT
HasPrivateKeyboolean

Indicates whether the certificate contains a private key.

true
Namestring

The name of the CSR.

name
RequestIdstring

The request ID.

E865F6AD-0294-4A24-A58B-DAC6BE2BDD20

Examples

Sample success responses

JSONformat

{
  "ShowSize": 10,
  "CurrentPage": 1,
  "TotalCount": 10,
  "CsrList": [
    {
      "CsrId": 3454,
      "Algorithm": "RSA",
      "KeySize": 2048,
      "KeySha2": "1234",
      "CommonName": "example.com",
      "Sans": "www.example.com,www.aliyundoc.com",
      "CountryCode": "CN",
      "Province": "Beijing",
      "Locality": "Beijing",
      "CorpName": "",
      "Department": "IT",
      "HasPrivateKey": true,
      "Name": "name"
    }
  ],
  "RequestId": "E865F6AD-0294-4A24-A58B-DAC6BE2BDD20"
}

Error codes

For a list of error codes, visit the Service error codes.