Description

This function shares and unshares the account's SSL certificate.


We removed this function in cPanel & WHM version 76.


Examples




https://hostname.example.com:2083/cpsess##########/execute/SSL/set_ssl_share?enable=1



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Share the certificate on the account.
$SSL_set_ssl_share = $cpanel->uapi(
    'SSL', 'set_ssl_share',    array(
        'enable'      => '1',
    )
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Share the certificate on the account.
my $SSL_set_ssl_share = $cpliveapi->uapi(
    'SSL', 'set_ssl_share',    {
        'enable'     => '1',
    }
);



<!--  Share the certificate on the account. -->
[% data = execute( 'SSL', 'set_ssl_share', { enable => '1',} ); %]



uapi --user=username SSL set_ssl_share enable=1



{
  "messages": null,
  "errors": null,
  "status": 1,
  "data": null
}



Parameters

ParameterTypeDescriptionPossible valuesExample
enableBoolean

Required

Whether to share the account's certificate.

  • 1 — Share.
  • 0 — Do not share.
1

Returns

This function only returns metadata.