Method | Description | |
---|---|---|
__construct ( |
AcmeService constructor. | |
answerChallenge ( string $location, string $keyAuth ) : Amp\Promise | Answers a challenge and signals that the CA should validate it. | |
pollForCertificate ( string $location ) : Amp\Promise | Polls for a certificate. | |
pollForChallenge ( string $location ) : Amp\Promise | Polls until a challenge has been validated. | |
register ( string $email, string | null $agreement = null ) : Amp\Promise | Registers a new account on the server. | |
requestCertificate ( string $csr ) : Amp\Promise | Requests a new certificate. | |
requestChallenges ( string $dns ) : Amp\Promise | Requests challenges for a given DNS name. | |
revokeCertificate ( string $pem ) : Amp\Promise | Revokes a certificate. |
Method | Description | |
---|---|---|
doAnswerChallenge ( string $location, string $keyAuth ) : Generator | Answers a challenge and signals that the CA should validate it. | |
doPollForCertificate ( string $location ) : Generator | Polls for a certificate. | |
doPollForChallenge ( string $location ) : Generator | Polls until a challenge has been validated. | |
doRegister ( string $email, string | null $agreement = null ) : Generator | Registers a new account on the server. | |
doRequestCertificate ( string $csr ) : Generator | Requests a new certificate. | |
doRequestChallenges ( string $dns ) : Generator | Requests challenges for a given DNS name. | |
doRevokeCertificate ( string $pem ) : Generator | Revokes a certificate. | |
generateException ( Amp\Artax\Response $response ) : |
Generates a new exception using the response to provide details. | |
parseRetryAfter ( string $header ) : integer | Parses a retry header into seconds to wait until a request should be retried. |
public __construct ( |
||
$acmeClient | ACME client |
public answerChallenge ( string $location, string $keyAuth ) : Amp\Promise | ||
$location | string | URI of the challenge |
$keyAuth | string | key authorization |
return | Amp\Promise | resolves to the decoded JSON response |
public pollForCertificate ( string $location ) : Amp\Promise | ||
$location | string | URI of the certificate |
return | Amp\Promise | resolves to the complete certificate chain as array of PEM encoded certificates |
public pollForChallenge ( string $location ) : Amp\Promise | ||
$location | string | URI of the challenge |
return | Amp\Promise | resolves to null |
public requestCertificate ( string $csr ) : Amp\Promise | ||
$csr | string | certificate signing request |
return | Amp\Promise | resolves to the URI where the certificate will be provided |
public requestChallenges ( string $dns ) : Amp\Promise | ||
$dns | string | DNS name to request challenge for |
return | Amp\Promise | resolves to an array of challenges |
public revokeCertificate ( string $pem ) : Amp\Promise | ||
$pem | string | PEM encoded certificate |
return | Amp\Promise | resolves to true |