tool/listcsrdomains
Description
Lists all self-signed SSL certificates and all signing requests (CSR’s) of a given SPanel user account.
Parameters
Field | Type | Required | Description |
---|---|---|---|
token | string | Yes | Authorizing API token – check API Basics for more information. |
accountuser | string | Yes | The SPanel user account that is being managed or viewed. |
action | string | Yes | The category and function being executed. |
Example
$endpointUrl = 'https://123.123.123.123/spanel/api.php';
$postData = [
'token' => 'provided_auth_token',
'accountuser' => 'spanelio',
'action' => 'tool/listcsrdomains',
];
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $endpointUrl);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt( $ch, CURLOPT_POST, true);
curl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query($postData));
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false);
$jsonOutput = curl_exec( $ch );
You can find more information about the Endpoint URL in our API Basics article.
Output
{
"result": "success",
"data": [
{
"domain": "spanel.io",
"domaincrt": "spanel.io.crt",
"domainkey": "spanel.io.key",
"domaincsr": "spanel.io.csr",
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIEyDCCArACAQAwgYIxEjAQBgNVBAMMCXNwYW5lbC5pbzELMAkGA1UEBhMCVVMx\nDjAMBgNVBAgMBVRleGFzMQ8wDQYDVQQHDAZEYWxsYXMxGzAZBgNVBAoMElNjYWxh\nIEhvc3RpbmcgTExDLjEhMB8GCSqGSIb3DQEJARYSbm8tcmVwbHlAc3BhbmVsLmlv\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq0OYr4omOgR7FpTuMLNH\nqHSaUMZOab8Oh3nEynaxx1KdRYoV7JPKHExnjW6FMZ+pky47PtQqtUrLQqK1CbFz\nl0GCnaCZwLPW+yvFK5ZYB/tinBGbpegBrUMATJeHOAIF1OToYF3NL6aXk3FgH6k1\n8z3oGYwm4Hgm8ZWBWaVMJ2iqbrE8NnaTEGCEpkbF12Vt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