mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-21 09:36:08 +00:00
Added selftest method to README.md
This commit is contained in:
@@ -107,11 +107,14 @@ challenge.
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
foreach ($authorizations as $authorization) {
|
foreach ($authorizations as $authorization) {
|
||||||
$client->validate($authorization->getHttpChallenge(), 15);
|
if ($client->selfTest($authorization, Client::VALIDATION_HTTP)) {
|
||||||
|
$client->validate($authorization->getHttpChallenge(), 15);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The method above will perform 15 attempts to ask LetsEncrypt to validate the challenge (with 1 second intervals) and
|
The code above will first perform a self test and, if successful, will do 15 attempts to ask LetsEncrypt to validate the challenge (with 1 second intervals) and
|
||||||
retrieve an updated status (it might take Lets Encrypt a few seconds to validate the challenge).
|
retrieve an updated status (it might take Lets Encrypt a few seconds to validate the challenge).
|
||||||
|
|
||||||
### Get the certificate
|
### Get the certificate
|
||||||
|
|||||||
Reference in New Issue
Block a user