403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/certbot/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/certbot/__pycache__/configuration.cpython-39.opt-1.pyc
a

�]e�.�@s�dZddlZddlZddlmZddlmZddlmZddlmZddl	Z	ddl
mZddl
mZdd	l
mZdd
lmZddlmZGdd
�d
�Zedd�dd�ZdS)z$Certbot user-supplied configuration.�N)�Any)�List)�Optional)�parse)�errors)�util)�	constants)�misc)�osc@s0eZdZdZejdd�dd�Zeed�dd�Z	eedd	�d
d�Z
eed�d
d��Zej
edd�dd��Zeeed�dd��Zej
edd�dd��Zeed�dd��Zej
edd�dd��Zeed�dd��Zej
edd�dd��Zeed�dd��Zej
edd�d d��Zeed�d!d"��Zeed�d#d$��Zeed�d%d&��Zeed�d'd(��Zeed�d)d*��Zeed�d+d,��Zeed�d-d.��Zeed�d/d0��Zeed�d1d2��Zeed�d3d4��Zeed�d5d6��Zeed�d7d8��Z eed�d9d:��Z!ee"ed�d;d<��Z#eed�d=d>��Z$eed�d?d@��Z%eed�dAdB��Z&eeed�dCdD��Z'eed�dEdF��Z(eedG�dHdI�Z)eed�dJdK��Z*eed�dLdM��Z+eed�dNdO��Z,eed�dPdQ��Z-eed�dRdS��Z.eed�dTdU��Z/eed�dVdW��Z0eed�dXdY��Z1eed�dZd[��Z2edd\�d]d^�Z3dS)_�NamespaceConfiga4Configuration wrapper around :class:`argparse.Namespace`.

    Please note that the following attributes are dynamically resolved using
    :attr:`~certbot.configuration.NamespaceConfig.work_dir` and relative
    paths defined in :py:mod:`certbot._internal.constants`:

      - `accounts_dir`
      - `csr_dir`
      - `in_progress_dir`
      - `key_dir`
      - `temp_checkpoint_dir`

    And the following paths are dynamically resolved using
    :attr:`~certbot.configuration.NamespaceConfig.config_dir` and relative
    paths defined in :py:mod:`certbot._internal.constants`:

      - `default_archive_dir`
      - `live_dir`
      - `renewal_configs_dir`

    :ivar namespace: Namespace typically produced by
        :meth:`argparse.ArgumentParser.parse_args`.
    :type namespace: :class:`argparse.Namespace`

    N)�	namespace�returncCsZ|t�|d|�tj�|jj�|j_tj�|jj�|j_tj�|jj�|j_t	|�dS)Nr)
�object�__setattr__r
�path�abspathr�
config_dir�work_dirZlogs_dir�_check_config_sanity)�selfr�r�9/usr/lib/python3.9/site-packages/certbot/configuration.py�__init__,szNamespaceConfig.__init__)�namer
cCst|j|�S�N)�getattrr)rrrrr�__getattr__:szNamespaceConfig.__getattr__)r�valuer
cCst|j||�dSr)�setattrr)rrrrrrr=szNamespaceConfig.__setattr__)r
cCs|jjS)zACME Directory Resource URI.�r�server�rrrrr @szNamespaceConfig.server)�server_r
cCs||j_dSrr)rr"rrrr EscCs|jjS)z�Email used for registration and recovery contact.

        Use comma to register multiple emails,
        ex: u1@example.com,u2@example.com. (default: Ask).
        �r�emailr!rrrr$IszNamespaceConfig.email)�mailr
cCs||j_dSrr#)rr%rrrr$RscCs|jjS)zSize of the RSA key.�r�rsa_key_sizer!rrrr'VszNamespaceConfig.rsa_key_size)�ksizer
cCs||j_dS)zSet the rsa_key_size propertyNr&)rr(rrrr'[scCs|jjS)z`The SECG elliptic curve name to use.

        Please see RFC 8446 for supported values.
        �r�elliptic_curver!rrrr*`szNamespaceConfig.elliptic_curve)�ecurver
cCs||j_dS)zSet the elliptic_curve propertyNr))rr+rrrr*hscCs|jjS)zhType of generated private key.

        Only *ONE* per invocation can be provided at this time.
        �r�key_typer!rrrr-mszNamespaceConfig.key_type)�ktyper
cCs||j_dS)zSet the key_type propertyNr,)rr.rrrr-uscCs|jjS)z�Adds the OCSP Must-Staple extension to the certificate.

        Autoconfigures OCSP Stapling for supported setups
        (Apache version >= 2.3.3 ).
        )r�must_stapler!rrrr/zszNamespaceConfig.must_staplecCs|jjS)zConfiguration directory.)rrr!rrrr�szNamespaceConfig.config_dircCs|jjS)zWorking directory.)rrr!rrrr�szNamespaceConfig.work_dircCs|�|j�S)z2Directory where all account information is stored.)�accounts_dir_for_server_path�server_pathr!rrr�accounts_dir�szNamespaceConfig.accounts_dircCstj�|jjtj�S)z Configuration backups directory.)r
r�joinrrrZ
BACKUP_DIRr!rrr�
backup_dir�szNamespaceConfig.backup_dircCs t�dt�tj�|jjtj	�S)zBDirectory where new Certificate Signing Requests (CSRs) are saved.z[NamespaceConfig.csr_dir is deprecated and will be removed in an upcoming release of Certbot)
�warnings�warn�DeprecationWarningr
rr3rrrZCSR_DIRr!rrr�csr_dir�s�zNamespaceConfig.csr_dircCstj�|jjtj�S)z:Directory used before a permanent checkpoint is finalized.)r
rr3rrrZIN_PROGRESS_DIRr!rrr�in_progress_dir�szNamespaceConfig.in_progress_dircCs t�dt�tj�|jjtj	�S)z
Keys storage.z[NamespaceConfig.key_dir is deprecated and will be removed in an upcoming release of Certbot)
r5r6r7r
rr3rrrZKEY_DIRr!rrr�key_dir�s�zNamespaceConfig.key_dircCstj�|jjtj�S)zTemporary checkpoint directory.)r
rr3rrrZTEMP_CHECKPOINT_DIRr!rrr�temp_checkpoint_dir�s
�z#NamespaceConfig.temp_checkpoint_dircCs|jjS)z�Disable verification of the ACME server's certificate.

        The root certificates trusted by Certbot can be overriden by setting the
        REQUESTS_CA_BUNDLE environment variable.
        )r�
no_verify_sslr!rrrr<�szNamespaceConfig.no_verify_sslcCs|jjS)z�Port used in the http-01 challenge.

        This only affects the port Certbot listens on.
        A conforming ACME server will still attempt to connect on port 80.
        )r�http01_portr!rrrr=�szNamespaceConfig.http01_portcCs|jjS)z;The address the server listens to during http-01 challenge.)r�http01_addressr!rrrr>�szNamespaceConfig.http01_addresscCs|jjS)z�Port used to serve HTTPS.

        This affects which port Nginx will listen on after a LE certificate
        is installed.
        )r�
https_portr!rrrr?�szNamespaceConfig.https_portcCs|jjS)zuList of user specified preferred challenges.

        Sorted with the most preferred challenge listed first.
        )r�pref_challsr!rrrr@�szNamespaceConfig.pref_challscCs|jjS)a�Allow only a subset of names to be authorized to perform validations.

        When performing domain validation, do not consider it a failure
        if authorizations can not be obtained for a strict subset of
        the requested domains. This may be useful for allowing renewals for
        multiple domains to succeed even if some domains no longer point
        at this system.
        )r�allow_subset_of_namesr!rrrrA�s
z%NamespaceConfig.allow_subset_of_namescCs|jjS)z�Enable strict permissions checks.

        Require that all configuration files are owned by the current
        user; only needed if your config is somewhere unsafe like /tmp/.
        )r�strict_permissionsr!rrrrB�sz"NamespaceConfig.strict_permissionscCs|jjS)z�Disable renewal updates.

        If updates provided by installer enhancements when Certbot is being run
        with "renew" verb should be disabled.
        )r�disable_renew_updatesr!rrrrC�sz%NamespaceConfig.disable_renew_updatescCs|jjS)z�Set the preferred certificate chain.

        If the CA offers multiple certificate chains, prefer the chain whose
        topmost certificate was issued from this Subject Common Name.
        If no match, the default offered chain will be used.
        )r�preferred_chainr!rrrrD�szNamespaceConfig.preferred_chaincCs&t�|jj�}|j|j�dtjj�S)zFile path based on ``server``.�/)	r�urlparserr �netlocr�replacer
�sep)r�parsedrrrr1szNamespaceConfig.server_path)r1r
cCs t�|�}tj�|jjtj|�S)z/Path to accounts directory based on server_path)	r	Z.underscores_for_unsupported_characters_in_pathr
rr3rrrZACCOUNTS_DIR)rr1rrrr0s
�z,NamespaceConfig.accounts_dir_for_server_pathcCstj�|jjtj�Sr)r
rr3rrrZARCHIVE_DIRr!rrr�default_archive_dirsz#NamespaceConfig.default_archive_dircCstj�|jjtj�Sr)r
rr3rrrZLIVE_DIRr!rrr�live_dirszNamespaceConfig.live_dircCstj�|jjtj�Sr)r
rr3rrrZRENEWAL_CONFIGS_DIRr!rrr�renewal_configs_dirs
�z#NamespaceConfig.renewal_configs_dircCstj�|jjtj�S)z>Path to directory with hooks to run with the renew subcommand.)r
rr3rrrZRENEWAL_HOOKS_DIRr!rrr�renewal_hooks_dirs�z!NamespaceConfig.renewal_hooks_dircCstj�|jtj�S)z8Path to the pre-hook directory for the renew subcommand.)r
rr3rNrZRENEWAL_PRE_HOOKS_DIRr!rrr�renewal_pre_hooks_dirs
�z%NamespaceConfig.renewal_pre_hooks_dircCstj�|jtj�S)z;Path to the deploy-hook directory for the renew subcommand.)r
rr3rNrZRENEWAL_DEPLOY_HOOKS_DIRr!rrr�renewal_deploy_hooks_dir%s
�z(NamespaceConfig.renewal_deploy_hooks_dircCstj�|jtj�S)z9Path to the post-hook directory for the renew subcommand.)r
rr3rNrZRENEWAL_POST_HOOKS_DIRr!rrr�renewal_post_hooks_dir+s
�z&NamespaceConfig.renewal_post_hooks_dircCs|jjS)zuThis option specifies how long (in seconds) Certbot will wait
        for the server to issue a certificate.
        )r�issuance_timeoutr!rrrrR1sz NamespaceConfig.issuance_timeoutcCs|jjS)z�This option specifies whether Certbot should generate a new private
        key when replacing a certificate, even if reuse_key is set.
        )r�new_keyr!rrrrS8szNamespaceConfig.new_key)�_memor
cCst�|j�}t|�|�Sr)�copyZdeepcopyr�type)rrTZnew_nsrrr�__deepcopy__AszNamespaceConfig.__deepcopy__)4�__name__�
__module__�__qualname__�__doc__�argparseZ	Namespacer�strrrr�propertyr �setterrr$�intr'r*r-�boolr/rrr2r4r8r9r:r;r<r=r>r?rr@rArBrCrDr1r0rKrLrMrNrOrPrQrRrSrWrrrrrs�	r)�configr
cCsF|j|jkrt�d�|j���|jjdurB|jjD]}t�|�q2dS)z�Validate command line options and display error message if
    requirements are not met.

    :param config: NamespaceConfig instance holding user configuration
    :type args: :class:`certbot.configuration.NamespaceConfig`

    z;Trying to run http-01 and https-port on the same port ({0})N)	r=r?rZConfigurationError�formatrZdomainsrZenforce_domain_sanity)rbZdomainrrrrHs	��r)r[r\rU�typingrrrZurllibrr5ZcertbotrrZcertbot._internalrZcertbot.compatr	r
rrrrrr�<module>s 9

Youez - 2016 - github.com/yon3zu
LinuXploit