Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.
This repository was archived by the owner on Nov 2, 2022. It is now read-only.

Detection of Free SSL status is missing #79

@fmp777

Description

@fmp777

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);
	}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions