MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads Account.php000064400000003102152232766650006663 0ustar00contact = $contact; $this->createdAt = $createdAt; $this->isValid = $isValid; $this->accountURL = $accountURL; } /** * Return the account ID * @return string */ public function getId(): string { return substr($this->accountURL, strrpos($this->accountURL, '/') + 1); } /** * Return create date for the account * @return \DateTime */ public function getCreatedAt(): \DateTime { return $this->createdAt; } /** * Return the URL for the account * @return string */ public function getAccountURL(): string { return $this->accountURL; } /** * Return contact data * @return array */ public function getContact(): array { return $this->contact; } /** * Returns validation status * @return bool */ public function isValid(): bool { return $this->isValid; } } Authorization.php000064400000005600152232766650010134 0ustar00domain = $domain; $this->expires = (new \DateTime())->setTimestamp(strtotime($expires)); $this->digest = $digest; } /** * Add a challenge to the authorization * @param Challenge $challenge */ public function addChallenge(Challenge $challenge) { $this->challenges[] = $challenge; } /** * Return the domain that is being authorized * @return string */ public function getDomain(): string { return $this->domain; } /** * Return the expiry of the authorization * @return \DateTime */ public function getExpires(): \DateTime { return $this->expires; } /** * Return array of challenges * @return Challenge[] */ public function getChallenges(): array { return $this->challenges; } /** * Return the HTTP challenge * @return Challenge|bool */ public function getHttpChallenge() { foreach ($this->getChallenges() as $challenge) { if ($challenge->getType() == Client::VALIDATION_HTTP) { return $challenge; } } return false; } /** * @return Challenge|bool */ public function getDnsChallenge() { foreach ($this->getChallenges() as $challenge) { if ($challenge->getType() == Client::VALIDATION_DNS) { return $challenge; } } return false; } /** * Return File object for the given challenge * @return File|bool */ public function getFile() { $challenge = $this->getHttpChallenge(); if ($challenge !== false) { return new File($challenge->getToken(), $challenge->getToken() . '.' . $this->digest); } return false; } /** * Returns the DNS record object * * @return Record|bool */ public function getTxtRecord() { $challenge = $this->getDnsChallenge(); if ($challenge !== false) { $hash = hash('sha256', $challenge->getToken() . '.' . $this->digest, true); $value = Helper::toSafeString($hash); return new Record('_acme-challenge.' . $this->getDomain(), $value); } return false; } } Certificate.php000064400000003721152232766650007520 0ustar00privateKey = $privateKey; $this->csr = $csr; $this->chain = $chain; list($this->certificate, $this->intermediateCertificate) = Helper::splitCertificate($chain); $this->expiryDate = Helper::getCertExpiryDate($chain); } /** * Get the certificate signing request * @return string */ public function getCsr(): string { return $this->csr; } /** * Get the expiry date of the current certificate * @return \DateTime */ public function getExpiryDate(): \DateTime { return $this->expiryDate; } /** * Return the certificate as a multi line string, by default it includes the intermediate certificate as well * * @param bool $asChain * @return string */ public function getCertificate($asChain = true): string { return $asChain ? $this->chain : $this->certificate; } /** * Return the intermediate certificate as a multi line string * @return string */ public function getIntermediate(): string { return $this->intermediateCertificate; } /** * Return the private key as a multi line string * @return string */ public function getPrivateKey(): string { return $this->privateKey; } } Challenge.php000064400000003136152232766650007160 0ustar00authorizationURL = $authorizationURL; $this->type = $type; $this->status = $status; $this->url = $url; $this->token = $token; } /** * Get the URL for the challenge * @return string */ public function getUrl(): string { return $this->url; } /** * Returns challenge type (DNS or HTTP) * @return string */ public function getType(): string { return $this->type; } /** * Returns the token * @return string */ public function getToken(): string { return $this->token; } /** * Returns the status * @return string */ public function getStatus(): string { return $this->status; } /** * Returns authorization URL * @return string */ public function getAuthorizationURL(): string { return $this->authorizationURL; } } File.php000064400000001414152232766650006152 0ustar00contents = $contents; $this->filename = $filename; } /** * Return the filename for HTTP validation * @return string */ public function getFilename(): string { return $this->filename; } /** * Return the file contents for HTTP validation * @return string */ public function getContents(): string { return $this->contents; } } Order.php000064400000005357152232766650006360 0ustar00domains = $domains; $this->url = $url; $this->status = $status; $this->expiresAt = (new \DateTime())->setTimestamp(strtotime($expiresAt)); $this->identifiers = $identifiers; $this->authorizations = $authorizations; $this->finalizeURL = $finalizeURL; } /** * Returns the order number * @return string */ public function getId(): string { return substr($this->url, strrpos($this->url, '/') + 1); } /** * Returns the order URL * @return string */ public function getURL(): string { return $this->url; } /** * Return set of authorizations for the order * @return string[] */ public function getAuthorizationURLs(): array { return $this->authorizations; } /** * Returns order status * @return string */ public function getStatus(): string { return $this->status; } /** * Returns expires at * @return \DateTime */ public function getExpiresAt(): \DateTime { return $this->expiresAt; } /** * Returs domains as identifiers * @return array */ public function getIdentifiers(): array { return $this->identifiers; } /** * Returns url * @return string */ public function getFinalizeURL(): string { return $this->finalizeURL; } /** * Returns domains for the order * @return array */ public function getDomains(): array { return $this->domains; } } Record.php000064400000001343152232766650006512 0ustar00name = $name; $this->value = $value; } /** * Return the DNS TXT record name for validation * @return string */ public function getName(): string { return $this->name; } /** * Return the record value for DNS validation * @return string */ public function getValue(): string { return $this->value; } }