cloudflare
cloudflare copied to clipboard
Detection of Free SSL status is missing
Would be good to implement ability to check the status of cloudflare's free ssl. The reason being that when you create a zone, the SSL may take some indeterminate amount of time to be ready. So before you enabled forced SSL, you have to check to see if its ready.
You can also tell cloudflare to retry the SSL which is can sometimes be useful.
Consider this patch to Zone/SSL.php
/**
* Get SSL Verification Info for a Zone (permission needed: #ssl:read)
* https://api.cloudflare.com/#ssl-verification-properties
*
* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_status($zone_identifier)
{
return $this->get('zones/'.$zone_identifier.'/ssl/verification');
}
/**
* Immediately retry SSL verification (permission needed: #ssl:edit)
* https://api.cloudflare.com/#ssl-verification-properties
*
* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_retry($zone_identifier)
{
$data = [
'retry' => true
];
return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data);
}
Hi
Please can you submit a pull request for this.
Thanks, James
sure, all set
Hmm, it appears that I created a pull request (#84) for the same stuff, but my version uses one method with an optional parameter, like all other methods.
@jamesryanbell, can you please merge #84?