Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/certbot/_internal/cli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/certbot/_internal/cli/__init__.pyc
�
���_c@sdZddlmZddlZddlZddlZddlZddljj	j
Zddlm
ZddlmZddlZddlmZddlj	jZddlmZmZmZmZmZmZmZmZmZm Z m!Z!ddl"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2dd	l3m4Z4m5Z5dd
l6m7Z7ddl8m9Z9ddl:m;Z;dd
l<m=Z=ddl>m?Z?ej@eA�ZBeCaDeEd�ZFd�ZGeCeG_Hd�ZId�ZJd�ZKdS(s2Certbot command line argument & config processing.i����(tprint_functionN(tdisco(tOptional(t	constants(tLEAUTOtold_path_fragmenttnew_path_prefixtcli_commandtSHORT_USAGEtCOMMAND_OVERVIEWtHELP_AND_VERSION_USAGEtARGPARSE_PARAMS_TO_REMOVEtEXIT_ACTIONStZERO_ARG_ACTIONSt
VAR_MODIFIERS(t_Defaultt	read_filetflag_defaulttconfig_helptHelpfulArgumentGrouptCustomHelpFormattert_DomainsActiontadd_domainstCaseInsensitiveListt_user_agent_comment_typet_EncodeReasonActiontparse_preferred_challengest_PrefChallActiont_DeployHookActiont_RenewHookActiontnonnegative_int(t	VERB_HELPt
VERB_HELP_MAP(t_add_all_groups(t_create_subparsers(t
_paths_parser(t_plugins_parsing(tHelpfulArgumentParsercCsHt|||�}t|�|jd�dddddddtd�dd	�|jd�d
ddddd
dtd�dtj�|jd�ddtdtd�dd�|jd�ddddd
dtd�dtj�|jd�ddddgddddddd
dtd�dd�|jd�ddddgtj	dd
dtd�dd�|jd�ddd dgd!d"d#dd$d%d&dt
dtd$�dd'�|jd�dddgd(dd)d%d*dd+�|jd�dddgd,dd-d%d.dd/�|jd�ddd0d1d d2dgd3dd4d%d5dtd4�dd6�|jd�d7d2dgd8dd
dd9dtd9�dd:�|jddgd;dd
dtd<�dd=�|jdd>d?dgd@dAdtdB�dtdB��|jdd>dgdCdd
dtdD�ddDddE�|jdd>dgdFddGdtdD�ddDddH�|jdddgdIdJdKddLdd
dtdL�ddM�|jddNdd
dtdO�ddP�|jddQddRdRdSjt
j�ddT�|jdd2gdUdVddWdd
dtdW�ddX�|jddYddZdd
dtdZ�dd[�|jdd\dd]dd
dtd]�dd^�|jdd2dgd_dd
dtd`�dda�|jddbddcdd
dtdc�ddd�|jd?dgded%dfdtdg�ddh�|jddiddjdd
dtdj�ddk�|jddldd
dtdm�ddn�|jddodd
dtdp�ddq�|jddrdd
dtds�ddt�|jddudd
dtdv�ddw�|jdd2ddgdxdyddzdd
dtdz�dd{�|jd7d|dgd}d~dddd
dtd�dd�tj�|jd7d�dd
dtd��dd��|jd�ddgd�dd
dtd��dd��|jd7d�dd
dtd��dtd���|jd7d�d�gd�dtdd�dtd��dtd���|jd7d�gd�dd�dtd��dtd���|jd7d�gd�dtdtd��dtd���|jd7d�dd
dtd��dd��|jd�d�dtd%d�dtd��dtd���|jd�d�d�d�d�gdtdtd��dtd���|jd�d�dtd�d�d�d�gd%d�dtd��dtd���|jd�d�dd
dd�dtd��dtd���|jd�dgd�dd
dd�dtd��dd��|jd�d�ddGdd�dtd��dd��|jd�dgd�dd
dd�dtd��dd��|jd�d�ddGdd�dtd��dtj�|jd�dgd�dd
dd�dtd��dd��|jd�d�ddGdd�dtd��dtj�|jd�d�dd
dd�dtd��dd��|jd�d�ddGdd�dtd��dtj�|jd�d�dd
dtd��dd��|jd�dd2dgd�dd�dtd��dtd���|jd�d�dd2gd�dd�dtdtd��dd��|jd2d�dd��|jd2d�dd��|jd2d�dtdtj�|jd2d�ddGdtd��dd�dtj�|jd2d�dtdd��|jd2d�ddGdd�dtd��dd��|jd2d�ddGdtd��dd�dd��|jd2d�dd
dtd��dd�dd��|jd2d�ddGdtd��dd�dd��tj|j�t|�t|�t||�|s>|an|j�S(�s�Returns parsed command line arguments.

    :param .PluginsRegistry plugins: available plugins
    :param list args: command line arguments with the program name removed

    :returns: parsed command line arguments
    :rtype: argparse.Namespace

    s-vs	--verbosetdestt
verbose_counttactiontcounttdefaultthelpsbThis flag can be used multiple times to incrementally increase the verbosity of output, e.g. -vvv.s-ts--textt	text_modet
store_trues--max-log-backupsttypetmax_log_backupss�Specifies the maximum number of backup logs that should be kept by Certbot's built in log rotation. Setting this flag to 0 disables log rotation entirely, causing Certbot to always append to the same log file.s--preconfigured-renewaltpreconfigured_renewalt
automationtruntcertonlytenhances-ns--non-interactives--noninteractivetnoninteractive_modes�Run without ever asking for user input. This may require additional command line flags; the client will try to explain which ones are required if it finds one missingtregistertforce_interactives�Force Certbot to be interactive even if it detects it's not being run in a terminal. This flag cannot be used with the renew subcommand.tcertificatess-ds	--domainss--domaintdomainstmetavartDOMAINsKDomain names to apply. For multiple domains you can use multiple -d flags or enter a comma separated list of domains as a parameter. The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate. The first domain will also be used in some software user interfaces and as the file paths for the certificate and related material unless otherwise specified or you already have a certificate with the same name. In the case of a name collision it will append a number like 0001 to the file path name. (default: Ask)s	--eab-kidteab_kidtEAB_KIDs+Key Identifier for External Account Bindings--eab-hmac-keyteab_hmac_keytEAB_HMAC_KEYs%HMAC key for External Account Bindingtmanagetdeletetrenews--cert-nametcertnametCERTNAMEs�Certificate name to apply. This name is used by Certbot for housekeeping and in file paths; it doesn't affect the content of the certificate itself. To see certificate names, run 'certbot certificates'. When creating a new certificate, specifies the new certificate's name. (default: the first provided domain or the name of an existing certificate on your system for the same domains)ttestings	--dry-runtdry_runs�Perform a test run of the client, obtaining test (invalid) certificates but not saving them to disk. This can currently only be used with the 'certonly' and 'renew' subcommands. 
Note: Although --dry-run tries to avoid making any persistent changes on a system, it  is not completely side-effect free: if used with webserver authenticator plugins like apache and nginx, it makes and then reverts temporary config changes in order to obtain test certificates, and reloads webservers to deploy and then roll back those changes.  It also calls --pre-hook and --post-hook commands if they are defined because they may be necessary to accurately simulate renewal. --deploy-hook commands are not called.s!--register-unsafely-without-emailtregister_unsafely_without_emails"Specifying this flag enables registering an account with no email address. This is strongly discouraged, because you will be unable to receive notice about impending expiration or revocation of your certificates or problems with your Certbot installation that will lead to failure to renew.tupdate_accountt
unregisters-ms--emailtemails--eff-emailt	eff_emails"Share your e-mail address with EFFs--no-eff-emailtstore_falses(Don't share your e-mail address with EFFs--keep-until-expirings--keeps--reinstallt	reinstalls�If the requested certificate matches an existing certificate, always keep the existing one until it is due for renewal (for the 'run' subcommand this means reinstall the existing certificate). (default: Ask)s--expandtexpands�If an existing certificate is a strict subset of the requested names, always expand and replace it with the additional names. (default: Ask)s	--versiontversions%(prog)s {0}s&show program's version number and exits--force-renewals--renew-by-defaulttrenew_by_defaults�If a certificate already exists for the requested domains, renew it now, regardless of whether it is near expiry. (Often --keep-until-expiring is more appropriate). Also implies --expand.s--renew-with-new-domainstrenew_with_new_domainss�If a certificate already exists for the requested certificate name but does not match the requested domains, renew it now, regardless of whether it is near expiry.s--reuse-keyt	reuse_keysDWhen renewing, use the same private key as the existing certificate.s--allow-subset-of-namestallow_subset_of_namess8When 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. This option cannot be used with --csr.s--agree-tosttoss5Agree to the ACME Subscriber Agreement (default: Ask)s	--accountt
ACCOUNT_IDtaccountsAccount ID to uses--duplicatet	duplicatesdAllow making a certificate lineage that duplicates an existing one (both can be renewed in parallel)s--os-packages-onlytos_packages_onlysA(certbot-auto only) install OS package dependencies and then stops--no-self-upgradetno_self_upgrades�(certbot-auto only) prevent the certbot-auto script from upgrading itself to newer released versions (default: Upgrade automatically)s--no-bootstraptno_bootstraps�(certbot-auto only) prevent the certbot-auto script from installing OS-level dependencies (default: Prompt to install  OS-wide dependencies, but exit if the user says 'No')s--no-permissions-checktno_permissions_checks\(certbot-auto only) skip the check on the file system permissions of the certbot-auto scripts-qs--quiettquiets\Silence all output except errors. Useful for automation via cron. Implies --non-interactive.trevokes--test-certs	--stagingtstagings_Use the staging server to obtain or revoke test (invalid) certificates; equivalent to --server s--debugtdebugs]Show tracebacks in case of errors, and allow certbot-auto execution on experimental platformss--debug-challengestdebug_challengessHAfter setting up challenges, wait for user input before submitting to CAs--no-verify-sslt
no_verify_sslt
standalonetmanuals--http-01-portthttp01_ports--http-01-addressthttp01_addresstnginxs--https-portt
https_ports--break-my-certstbreak_my_certss]Be willing to replace or renew valid certificates with invalid (testing/staging) certificatestsecuritys--rsa-key-sizetNtrsa_key_sizes
--key-typetchoicestrsatecdsatkey_types--elliptic-curvet	secp256r1t	secp384r1t	secp521r1telliptic_curves
--must-stapletmust_staples
--redirecttredirects�Automatically redirect all HTTP traffic to HTTPS for the newly authenticated vhost. (default: redirect enabled for install and run, disabled for enhance)s
--no-redirects�Do not automatically redirect all HTTP traffic to HTTPS for the newly authenticated vhost. (default: redirect enabled for install and run, disabled for enhance)s--hststhstss�Add the Strict-Transport-Security header to every HTTP response. Forcing browser to always use SSL for the domain. Defends against SSL Stripping.s	--no-hstss--uirtuirs�Add the "Content-Security-Policy: upgrade-insecure-requests" header to every HTTP response. Forcing the browser to use https:// for every http:// resource.s--no-uirs
--staple-ocsptstaplesmEnables OCSP Stapling. A valid OCSP response is stapled to the certificate that the server offers during TLS.s--no-staple-ocsps--strict-permissionststrict_permissionss}Require that all configuration files are owned by the current user; only needed if your config is somewhere unsafe like /tmp/s--preferred-chaintpreferred_chains--preferred-challengestpref_challss�A sorted, comma delimited list of the preferred challenge to use during authorization with the most preferred challenge listed first (Eg, "dns" or "http,dns"). Not all plugins support all challenges. See https://certbot.eff.org/docs/using.html#plugins for details. ACME Challenges are versioned, but if you pick "http" rather than "http-01", Certbot will select the latest version automatically.s
--pre-hookszCommand to be run in a shell before obtaining any certificates. Intended primarily for renewal, where it can be used to temporarily shut down a webserver that might conflict with the standalone plugin. This will only be called if a certificate is actually to be obtained/renewed. When renewing several certificates that have identical pre-hooks, only the first will be executed.s--post-hooksKCommand to be run in a shell after attempting to obtain/renew certificates. Can be used to deploy renewed certificates, or to restart any servers that were stopped by --pre-hook. This is only run if an attempt was made to obtain/renew a certificate. If multiple renewed certificates have identical post-hooks, only one will be run.s--renew-hooks--no-random-sleep-on-renewtrandom_sleep_on_renews
--deploy-hooks�Command to be run in a shell once for each successfully issued certificate. For this command, the shell variable $RENEWED_LINEAGE will point to the config live subdirectory (for example, "/etc/letsencrypt/live/example.com") containing the new certificates and keys; the shell variable $RENEWED_DOMAINS will contain a space-delimited list of renewed certificate domains (for example, "example.com www.example.com"s--disable-hook-validationtvalidate_hookss�Ordinarily the commands specified for --pre-hook/--post-hook/--deploy-hook will be checked for validity, to see if the programs being run are in the $PATH, so that mistakes can be caught early, even when the hooks aren't being run just yet. The validation is rather simplistic and fails if you use more advanced shell constructs, so you can use this switch to disable it. (default: False)s--no-directory-hookstdirectory_hookss`Disable running executables found in Certbot's hook directories during renewal. (default: False)s--disable-renew-updatestdisable_renew_updatessDisable automatic updates to your server configuration that would otherwise be done by the selected installer plugin, and triggered when the user executes "certbot renew", regardless of if the certificate is renewed. This setting does not apply to important TLS configuration updates.s--no-autorenewt	autorenews%Disable auto renewal of certificates.N(R%R!taddtNoneRtargparsetSUPPRESSRRtFORCE_INTERACTIVE_FLAGRRtformattcertbott__version__tSTAGING_URItinttstrRRRtenhancementstpopulate_cliR"R#R$thelpful_parsert
parse_args(tpluginstargstdetect_defaultsthelpful((sB/usr/lib/python2.7/site-packages/certbot/_internal/cli/__init__.pytprepare_and_parse_argsHs



	

	
			!
		
	


	cCstj}|dkr}tdk	r}tjj�}tjtjg}t	||dt
�}t_tj|�\|_
|_ntt||�t�s�tjd|t||��t
SxItj|g�D]5}t|�r�tjd|tj|g��t
Sq�WtS(s�
    Return True if a particular config variable has been set by the user
    (CLI or config file) including if the user explicitly set it to the
    default.  Returns False if the variable was assigned a default value.
    R�sVar %s=%s (set by user).N(t
set_by_clitdetectorR�R�t
plugins_discotPluginsRegistrytfind_allR�tverbR�tTruetplugin_selectiontcli_plugin_requestst
authenticatort	installert
isinstancetgetattrRtloggerR_RtgettFalse(tvarR�R�treconstructed_argstmodifier((sB/usr/lib/python2.7/site-packages/certbot/_internal/cli/__init__.pyR��s 		cCs0tdk	r,|tjko+tj||kStS(sHDoes option have the default value?

    If the default value of option is not known, False is returned.

    :param str option: configuration variable being considered
    :param value: value of the configuration variable named option

    :returns: True if option has the default value, otherwise, False
    :rtype: bool

    N(R�R�tdefaultsR�(toptiontvalue((sB/usr/lib/python2.7/site-packages/certbot/_internal/cli/__init__.pythas_default_value�scCst|�pt||�S(sWas option set by the user or does it differ from the default?

    :param str option: configuration variable being considered
    :param value: value of the configuration variable named option

    :returns: True if the option was set, otherwise, False
    :rtype: bool

    (R�R�(R�R�((sB/usr/lib/python2.7/site-packages/certbot/_internal/cli/__init__.pytoption_was_sets
cCsOtdk	rKx<tjjD]+}|jdk	r|j|kr|jSqWntS(sFReturn our argparse type function for a config variable (default: str)N(R�R�tparsert_actionsR.R&R�(tvariableR(((sB/usr/lib/python2.7/site-packages/certbot/_internal/cli/__init__.pyt
argparse_types
(Lt__doc__t
__future__Rtloggingtlogging.handlersR�tsyst#certbot._internal.plugins.selectiont	_internalR�t	selectionR�tcertbot._internal.pluginsRR�tacme.magic_typingRR�tcertbot._internalRtcertbot.plugins.enhancementsR�t#certbot._internal.cli.cli_constantsRRRRRR	R
RRR
Rtcertbot._internal.cli.cli_utilsRRRRRRRRRRRRRRRRtcertbot._internal.cli.verb_helpRR t!certbot._internal.cli.group_adderR!t certbot._internal.cli.subparsersR"t"certbot._internal.cli.paths_parserR#t%certbot._internal.cli.plugins_parsingR$tcertbot._internal.cli.helpfulR%t	getLoggert__name__R�R�R�R�R�R�R�R�R�R�(((sB/usr/lib/python2.7/site-packages/certbot/_internal/cli/__init__.pyt<module>s8Lj��	#			

Spamworldpro Mini