SSLListCertificates

Retrieve list with active SSL certificates in your account.

Input

None

Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Total active SSL certificates
Only sent when value parameter success = 1
20
id_X ID (numeric)SSL certificate.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
10
product_X Product id certficate type.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
5
issue_date_X Certificate issue date.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1 en parameter issued = 1
15-08-2014
expire_date_X Expire date.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1 en parameter issued = 1
15-08-2015
issued_X Certificate issued?
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
0 = not issued yet
1 = issued


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "SSLListCertificates" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['id_'.$teller]; ?></td> <td><? echo $versio['product_id_'.$teller]; ?></td> <td><? echo $versio['issue_date_'.$teller]; ?></td> <td><? echo $versio['expire_date_'.$teller]; ?></td> <td><? echo $versio['issued_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No SSL certificates found in your account."); } } ?>