✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/wp-letsencrypt-ssl/lib//LEAuthorization.php
<?php

namespace WPLEClient;

use WPLEClient\Exceptions\LEAuthorizationException;

/**
 * LetsEncrypt Authorization class, getting LetsEncrypt authorization data associated with a LetsEncrypt Order instance.
 *
 * PHP version 5.2.0
 *
 * MIT License
 *
 * Copyright (c) 2018 Youri van Weegberg
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 * @author     Youri van Weegberg <youri@yourivw.nl>
 * @copyright  2018 Youri van Weegberg
 * @license    https://opensource.org/licenses/mit-license.php  MIT License
 * @link       https://github.com/yourivw/LEClient
 * @since      Class available since Release 1.0.0
 */
class LEAuthorization
{
  private $connector;

  public $authorizationURL;
  public $identifier;
  public $status;
  public $expires;
  public $challenges;

  private $log;

  /**
   * Initiates the LetsEncrypt Authorization class. Child of a LetsEncrypt Order instance.
   *
   * @param LEConnector	$connector			The LetsEncrypt Connector instance to use for HTTP requests.
   * @param int 			$log 				The level of logging. Defaults to no logging. LOG_OFF, LOG_STATUS, LOG_DEBUG accepted.
   * @param string 		$authorizationURL 	The URL of the authorization, given by a LetsEncrypt order request.
   */
  public function __construct($connector, $log, $authorizationURL)
  {
    $this->connector = $connector;
    $this->log = $log;
    $this->authorizationURL = $authorizationURL;

    $sign = $this->connector->signRequestKid('', $this->connector->accountURL, $this->authorizationURL);
    $post = $this->connector->post($this->authorizationURL, $sign);
    if ($post['status'] === 200) {
      $this->identifier = $post['body']['identifier'];
      $this->status = $post['body']['status'];
      $this->expires = $post['body']['expires'];
      $this->challenges = $post['body']['challenges'];
    } else {
      if ($this->log instanceof \Psr\Log\LoggerInterface) {
        $this->log->info('Cannot find authorization \'' . $authorizationURL . '\'.');
      } elseif ($this->log >= LEClient::LOG_STATUS) LEFunctions::log('Cannot find authorization \'' . $authorizationURL . '\'.', 'function LEAuthorization __construct');
    }
  }

  /**
   * Updates the data associated with the current LetsEncrypt Authorization instance.
   */

  public function updateData()
  {
    $sign = $this->connector->signRequestKid('', $this->connector->accountURL, $this->authorizationURL);
    $post = $this->connector->post($this->authorizationURL, $sign);
    if ($post['status'] === 200) {
      $this->identifier = $post['body']['identifier'];
      $this->status = $post['body']['status'];
      $this->expires = $post['body']['expires'];
      $this->challenges = $post['body']['challenges'];
    } else {
      if ($this->log instanceof \Psr\Log\LoggerInterface) {
        $this->log->info('Cannot find authorization \'' . $this->authorizationURL . '\'.');
      } elseif ($this->log >= LEClient::LOG_STATUS) LEFunctions::log('Cannot find authorization \'' . $this->authorizationURL . '\'.', 'function updateData');
    }
  }

  /**
   * Gets the challenge of the given $type for this LetsEncrypt Authorization instance. Throws a Runtime Exception if the given $type is not found in this
   * LetsEncrypt Authorization instance.
   *
   * @param int	$type 	The type of verification. Supporting LEOrder::CHALLENGE_TYPE_HTTP and LEOrder::CHALLENGE_TYPE_DNS.
   *
   * @return array	Returns an array with the challenge of the requested $type.
   */
  public function getChallenge($type)
  {
    foreach ($this->challenges as $challenge) {
      if ($challenge['type'] == $type) return $challenge;
    }
    throw LEAuthorizationException::NoChallengeFoundException($type, $this->identifier['value']);
  }
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
Exceptions
--
9 Jun 2026 8.39 AM
builxejc / builxejc
0755
LEAccount.php
9.892 KB
30 May 2026 5.22 PM
builxejc / builxejc
0644
LEAuthorization.php
4.631 KB
30 May 2026 5.22 PM
builxejc / builxejc
0644
LEClient.php
9.521 KB
30 May 2026 5.22 PM
builxejc / builxejc
0644
LEConnector.php
12.756 KB
30 May 2026 5.22 PM
builxejc / builxejc
0644
LEFunctions.php
11.006 KB
30 May 2026 5.22 PM
builxejc / builxejc
0644
LEOrder.php
40.428 KB
30 May 2026 5.22 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF