Description
This function shares and unshares the account's SSL certificate.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/SSL/set_ssl_share?enable=1
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$SSL_set_ssl_share
=
$cpanel
->uapi(
'SSL'
,
'set_ssl_share'
,
array
(
'enable'
=>
'1'
,
)
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$SSL_set_ssl_share
=
$cpliveapi
->uapi(
'SSL'
,
'set_ssl_share'
, {
'enable'
=>
'1'
,
}
);
cPanel Template Toolkit
[% data = execute( 'SSL', 'set_ssl_share', { enable => '1',} ); %]
Command Line
uapi --user=username SSL set_ssl_share enable=1
|
Output (JSON)
{
"messages": null,
"errors": null,
"status": 1,
"data": null
}
Parameters
Parameter
|
Type
|
Description
|
Possible values
|
Example
|
enable
|
Boolean
|
Required
Whether to share the account's certificate.
|
- 1 — Share.
- 0 — Do not share.
|
1
|
Returns
This function only returns metadata.