Description

This function retrieves the hostname and CA (Certificate Authority) bundle for a domain and certificate.

Examples 


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

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

 

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

GET DOMAIN: example.com
BUNDLE: (The text of the certificate bundle) 

Parameters

ParameterTypeDescriptionPossible valuesExample
domain

string

Required

The domain name.

A valid domain name.example.com
crtstring

Required

The certificate data.

The raw text of the certificate.(The text of the certificate bundle.)

Returns

This function returns the domain name and the raw CA bundle.