Hi El Chojin,
Yes, the example code you provided, which uses the xml-api PHP client class, should work fine without any modification, regardless of your certificate.
So, I don't understand exactly what your mean by 'page'
Since you've removed the entirety of the RESPONSE: I can only assume there's an actual result with real information and not just an error message. So, assuming that, your issue is likely something with the way you're rendering the output of the script. Are you executing this in a web page or just on the command line?
You could do something like
Code:
$results = $xmlapi->listaccts();
var_dump($results);
At minimum, it should return NULL if there was a programming error. If there wasn't a program error, then $result will be a SimpleXML object with either your accounts or a error message related to access or information on the cPanel server.
What happens if you log into WHM in a browser, then go to
Code:
https://here_is_my_ip:2087/xml-api/listaccts
You should get raw XML in the browser (you may have to right-click and 'view page source').
Regards,
-DavidN