Make sure you've read the getting started guide first. Once that's done, you should have our package & authentication ready to go.
Getting the certificate
If your site has its certificate health check enabled, you can get some information regarding the found certificate.
$ohDear->site($siteId)->certificate(); //alternatively you could do this $ohDear->cerficate($siteId);
Both methods above will return an
You can get the properties of a certificate
// An array containing some details about the certificate itself $brokenLink->certificateDetails; // An array containing all the checks we performed on the certificate $brokenLink->certificateChecks; // An array containing the names of all the issuers in the certificate chain. $brokenLink->certificateChainIssuers;
The specific return values are described in the certificate health API endpoint.