Description
This function retrieves a Certificate Signing Request (CSR).
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Note:
You must include one of the following parameters:
Parameter |
Type |
Description |
Possible values |
Example |
id |
string |
The CSR's ID. |
A valid string. |
|
friendly_name |
string |
The CSR's friendly name. |
A valid string. |
TestCSR |
Returns
Return |
Type |
Description |
Possible values |
Example |
text |
string |
The parsed information from the OpenSSL command-line tool. |
A valid string. |
|
csr |
string |
The CSR's text. |
A valid CSR. |
|
details |
hash |
A hash of the CSR's contents. |
This hash includes the organizationalUnitName, emailAddress, organizationName, countryName, stateOrProvinceName, modulus, created, domains, key_algorithm, commonName, friendly_name, and id returns. |
|
organizationalUnitName |
string |
The CSR's organizational unit name. The function returns this value in the detailshash. |
A valid string. |
Department |
emailAddress |
string |
The CSR's email address. The function returns this parameter in the detailshash. |
A valid string. |
username@example.com |
organizationName |
string |
The CSR's organization name. The function returns this value in the detailshash. |
A valid string. |
Organization |
countryName |
string |
The CSR's country name. The function returns this value in the detailshash. |
A valid two-letter ISO-3166 country code. |
US |
stateOrProvinceName |
string |
The CSR's state or province name. The function returns this value in the detailshash. |
A valid string. |
Texas |
modulus |
string |
The CSR's modulus. The function returns this value in the detailshash. |
A valid string. |
|
created |
string |
The CSR's creation date. The function returns this value in the detailshash. |
A date in Unix time format. |
1365633415 |
domains |
string |
The domains that the CSR covers. The function returns this value in the detailshash. |
A valid domain name or list of domains. |
example.com |
key_algorithm |
string |
The key algorithm that encrypts the CSR. The function returns this value in the detailshash. |
A valid string. |
rsaEncryption |
commonName |
string |
The CSR's Common Name or Distinguished Name. The function returns this value in the detailshash. |
A valid string. |
example.com |
friendly_name |
string |
The CSR's friendly name. The function returns this value in the detailshash. |
A valid string. |
TestCSR |
id |
string |
The CSR's ID. The function returns this value in the detailshash. |
A valid string |
|