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

Add free SSL status and retry #80

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Conversation

fmp777
Copy link

@fmp777 fmp777 commented Aug 31, 2017

Cloudflare's free SSL takes time to issue. These two new functions enable you to detect when its ready and also to trigger Cloudflare to retry validation (like after name servers were updated).

tangrufus and others added 23 commits March 14, 2017 14:32
to prevent needless code / checks for `NULL` values
…tps-setting

Add always_use_https() and change_always_use_https()
Add automatic_https_rewrites() and change_automatic_https_rewrites()
Removed version number based on Composer best practices. Thanks for pointing out @holtkamp
https://getcomposer.org/doc/04-schema.md#version
v1.11.0 updated the default $data and $method parameters for the request method. The method parameters that call this method need to be updated to avoid exceptions being thrown.
Update default data parameters for request methods
Cloudflare's free SSL takes time to issue. These two new functions enable you to detect when its ready and also to trigger Cloudflare to retry validation (like after name servers were updated).
Add free SSL status and retry
@@ -96,4 +96,30 @@ public function delete_ssl($zone_identifier, $identifier)
{
return $this->delete('zones/'.$zone_identifier.'/custom_certificates/'.$identifier);
}

/**
* Get SSL Verification Info for a Zone (permission needed: #ssl:read)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed


/**
* Get SSL Verification Info for a Zone (permission needed: #ssl:read)
* https://api.cloudflare.com/#ssl-verification-properties

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

/**
* Get SSL Verification Info for a Zone (permission needed: #ssl:read)
* https://api.cloudflare.com/#ssl-verification-properties
*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

* 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

* https://api.cloudflare.com/#ssl-verification-properties
*
* @param string $zone_identifier API item identifier tag
*/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

*
* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_status($zone_identifier)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Spaces must be used to indent lines; tabs are not allowed
  • Method name SSL::free_ssl_status is not in camel caps format

* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_status($zone_identifier)
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

*/
public function free_ssl_status($zone_identifier)
{
return $this->get('zones/'.$zone_identifier.'/ssl/verification');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

public function free_ssl_status($zone_identifier)
{
return $this->get('zones/'.$zone_identifier.'/ssl/verification');
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

return $this->get('zones/'.$zone_identifier.'/ssl/verification');
}

/**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

}

/**
* Immediately retry SSL verification (permission needed: #ssl:edit)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed


/**
* Immediately retry SSL verification (permission needed: #ssl:edit)
* https://api.cloudflare.com/#ssl-verification-properties

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

/**
* Immediately retry SSL verification (permission needed: #ssl:edit)
* https://api.cloudflare.com/#ssl-verification-properties
*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

* Immediately retry SSL verification (permission needed: #ssl:edit)
* https://api.cloudflare.com/#ssl-verification-properties
*
* @param string $zone_identifier API item identifier tag

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

* https://api.cloudflare.com/#ssl-verification-properties
*
* @param string $zone_identifier API item identifier tag
*/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

*
* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_retry($zone_identifier)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Spaces must be used to indent lines; tabs are not allowed
  • Method name SSL::free_ssl_retry is not in camel caps format

* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_retry($zone_identifier)
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

*/
public function free_ssl_retry($zone_identifier)
{
$data = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

public function free_ssl_retry($zone_identifier)
{
$data = [
'retry' => true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

{
$data = [
'retry' => true
];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

'retry' => true
];

return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

];

return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

*
* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_status($zone_identifier)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed
Method name "SSL::free_ssl_status" is not in camel caps format

*
* @param string $zone_identifier API item identifier tag
*/
public function free_ssl_retry($zone_identifier)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed
Method name "SSL::free_ssl_retry" is not in camel caps format

@coveralls
Copy link

coveralls commented Aug 31, 2017

Coverage Status

Coverage decreased (-0.03%) to 3.034% when pulling d6fab0b on fmp777:master into 26e3d6b on jamesryanbell:master.

@tigran-m-dev
Copy link

#79 Added reference to opened issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants