Description

This function retrieves a list of domains that possess AutoSSL problems.


Examples 




https://hostname.example.com:2083/cpsess##########/execute/SSL/get_autossl_problems



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Retrieve a list of domains that possess AutoSSL problems.
$SSL_get_autossl_problems = $cpanel->uapi(
    'SSL', 'get_autossl_problems', array()
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Retrieve a list of domains that possess AutoSSL problems.
my $SSL_get_autossl_problems = $cpliveapi->uapi(
    'SSL', 'get_autossl_problems',
);



<!-- Retrieve CA problem and hostname from certificate. -->
[% data = execute( 'SSL', 'get_autossl_problems', ); %]
[% FOREACH q = data %]
     <p>
         [% q %]
     </p>
[% END %]



uapi --user=username SSL get_autossl_problems



{
  "messages": null,
  "errors": null,
  "status": 1,
  "data": {
    "domain":"example.com",
    "problem":""example.com" contains 400 domains, which 
exceeds the maximum number (200) of domains allowed for the 
"cPanel (powered by Sectigo)" AutoSSL provider. This system will 
include those 200 domains on the certificate that appear to be 
the website's most important. To allow AutoSSL to secure each 
domain, divide the 400 domains among separate websites. (The websites 
can all serve the same content from the same document root.)",
    "time":"2018-06-07T05:30:09Z"
  }
}



Parameters

This function does not accept parameters.

Returns 

ReturnTypeDescriptionPossible valuesExample
domainstringThe certificate's hostname.A valid hostname.example.com
problemstringA text description of the problem.A valid string.


"example.com" contains 400 domains, which exceeds the maximum number (200) of domains allowed for the "cPanel (powered by Sectigo)" AutoSSL provider. This system will include those 200 domains on the certificate that appear to be the website's most important. To allow AutoSSL to secure each domain, divide the 400 domains among separate websites. (The websites can all serve the same content from the same document root.)


timestringWhen the problem occurred.A time value, in ISO-8601 format.
2018-06-07T05:30:09Z