Child pages
  • cPanel API 1 Functions - SSL::installedhost

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

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

Warning
titleWarning:

Include Page
LIB:_cPanelAPI1NewerFunctions
LIB:_cPanelAPI1NewerFunctions

Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone
Expand
titleLiveAPI PHP Class
Code Block
languagephp
linenumberstrue
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$installed_crt = $cpanel->api1('SSL','installedhost', array('example.com') ); // Call the function.

Include Page
LIB:_LiveAPIPHPLink
LIB:_LiveAPIPHPLink

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

Include Page
LIB:_LiveAPIPerlLink
LIB:_LiveAPIPerlLink

 

Expand
titlecPanel Tag System (deprecated)

Include Page
LIB:_cPanelTagsWarning
LIB:_cPanelTagsWarning

Code Block
languagetext
<cpanel Module="SSL::installedhost( $FORM('domain') )">
Expand
titleCommand Line
Code Block
languagebash
cpapi1 --user=username SSL installedhost example.com

Include Page
LIB:_cPanelAPI1CLINote
LIB:_cPanelAPI1CLINote

Expand
titleOutput (HTML)
Code Block
languagexml
linenumberstrue
 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.