<?php
include("/usr/local/cpanel/php/cpanel.php"); // Instantiate the CPANEL object.
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
print $cpanel->header( "Page Heading" ); // Add the header.
?>
<?php
// List an account's certificates.
$SSL_list_certs = $cpanel->uapi(
'SSL', 'list_certs'
);
var_dump($SSL_list_certs);
?>
<?php
print $cpanel->footer(); // Add the footer.
$cpanel->end(); // Disconnect from cPanel - only do this once.
?>