Kelunik\Acme\AcmeService classAcmeService

High level ACME client.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Kelunik\Acme\AcmeClient$acmeClient)

AcmeService constructor.

Type Parameter Description Default Value
Kelunik\Acme\AcmeClient $acmeClient ACME client none
register —public functionregister(string$email,string|null$agreement =null):Amp\Promise

Registers a new account on the server.

Type Parameter Description Default Value
string $email e-mail address for contact none
string|null $agreement agreement URI or null if not agreed yet null
requestChallenges —public functionrequestChallenges(string$dns):Amp\Promise

Requests challenges for a given DNS name.

Type Parameter Description Default Value
string $dns DNS name to request challenge for none
answerChallenge —public functionanswerChallenge(string$location,string$keyAuth):Amp\Promise

Answers a challenge and signals that the CA should validate it.

Type Parameter Description Default Value
string $location URI of the challenge none
string $keyAuth key authorization none
pollForChallenge —public functionpollForChallenge(string$location):Amp\Promise

Polls until a challenge has been validated.

Type Parameter Description Default Value
string $location URI of the challenge none
requestCertificate —public functionrequestCertificate(string$csr):Amp\Promise

Requests a new certificate.

Type Parameter Description Default Value
string $csr certificate signing request none
pollForCertificate —public functionpollForCertificate(string$location):Amp\Promise

Polls for a certificate.

Type Parameter Description Default Value
string $location URI of the certificate none
revokeCertificate —public functionrevokeCertificate(string$pem):Amp\Promise

Revokes a certificate.

Type Parameter Description Default Value
string $pem PEM encoded certificate none