Creates a certificate signing request (CSR).
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
KeySize | integer | Yes | 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 |
Algorithm | string | Yes | The algorithm. Valid values: RSA, SM2, and ECC. | RSA |
CommonName | string | Yes | The primary domain name, which is a common name. | 123.com |
Sans | string | No | The secondary domain names. Separate multiple domain names with commas (,). | www.example.com,www.aliyundoc.com |
CountryCode | string | Yes | The two-letter country codes that are published by the International Organization for Standardization (ISO). For example, the two-letter country code for China is CN. | CN |
Province | string | Yes | The province or location where the company is located. | Beijing |
Locality | string | Yes | The city where the company is located. | Beijing |
CorpName | string | No | The name of the company. | |
Name | string | No | The name of the CSR. | csr-123 |
Department | string | No | The department that uses the certificate. | IT |
Response parameters
Examples
Sample success responses
JSON
format
{
"Csr": "-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----",
"RequestId": "12345678-1234-1234-1234-123456789ABC",
"CsrId": 3365
}
Error codes
For a list of error codes, visit the Service error codes.