Description

This function retrieves the name of the SSL certificate for the IP address of a domain.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$installed_crt = $cpanel->api1('SSL','installedhost', array('example.com') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $installed_crt = $cpliveapi->api1('SSL','installedhost', ['example.com'] ); # Call the function.

 

<cpanel Module="SSL::installedhost( $FORM('domain') )">
cpapi1 --user=username SSL installedhost example.com

 example.com (parked.com parked2.com)
 <script>
 function getdomainr() {
 for(var i=0;i<document.mainform.domain.options.length;i++) {
 if (document.mainform.domain.options[i].value == "example.com") {
 document.mainform.domain.selectedIndex = i;
 }
 }
 document.mainform.domain.disabled = true;
 lookupinfo();
 }
 </script>

Parameters

ParameterTypeDescriptionPossible valuesExample
domain

string

Required

The domain name.

A valid domain name.example.com

Returns

This function returns the name of the certificate.