????
Current Path : /usr/lib/python3.6/site-packages/certbot/_internal/plugins/__pycache__/ |
Current File : //usr/lib/python3.6/site-packages/certbot/_internal/plugins/__pycache__/manual.cpython-36.pyc |
3 گa�. � @ s d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lm Z dd l mZ ddlm Z ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ eje �Z!G dd� dej"ej#�Z#dS )zManual authenticator plugin� N)�Any)�Callable)�Dict)�Iterable)�List)�Tuple)�Type)� challenges)�achallenges)�errors)� interfaces)�reverter)�util)�hooks)� cli_constants)�misc)�os)�ops)�commonc s8 e Zd ZdZdZdZdZdZdZdZ dZ d Zeed d�� fdd �Z eed. d d�dd��Zd d�dd�Zd d�dd�Zed�dd�Zeej ed�dd�Zeeeej d�dd�Zeej eej d�d d!�Zejeej d d"�d#d$�Z d/eje!d d&�d'd(�Z"eej d d�d)d*�Z#eee$eef d+�d,d-�Z%� Z&S )0� Authenticatorz�Manual authenticator This plugin allows the user to perform the domain validation challenge(s) themselves. This either be done manually by the user or through shell scripts provided to Certbot. z2Manual configuration or run your own shell scriptsTa� Authenticate through manual configuration or custom shell scripts. When using shell scripts, an authenticator script must be provided. The environment variables available to this script depend on the type of challenge. $CERTBOT_DOMAIN will always contain the domain being authenticated. For HTTP-01 and DNS-01, $CERTBOT_VALIDATION is the validation string, and $CERTBOT_TOKEN is the filename of the resource requested when performing an HTTP-01 challenge. An additional cleanup script can also be provided and can use the additional variable $CERTBOT_AUTH_OUTPUT which contains the stdout output from the auth script. For both authenticator and cleanup script, on HTTP-01 and DNS-01 challenges, $CERTBOT_REMAINING_CHALLENGES will be equal to the number of challenges that remain after the current one, and $CERTBOT_ALL_DOMAINS contains a comma-separated list of all domains that are challenged for the current certificate.zcPlease deploy a DNS TXT record under the name: {domain}. with the following value: {validation} a� Before continuing, verify the TXT record has been deployed. Depending on the DNS provider, this may take some time, from a few seconds to multiple minutes. You can check if it has finished deploying with aid of online tools, such as the Google Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/{domain}. Look for one or more bolded line(s) below the line ';ANSWER'. It should show the value(s) you've just added. zuCreate a file containing just this data: {validation} And make it available on your web server at this URL: {uri} z� (This must be set up in addition to the previous challenges; do not remove, replace, or undo the previous challenge tasks yet.) z� (This must be set up in addition to the previous challenges; do not remove, replace, or undo the previous challenge tasks yet. Note that you might be asked to create multiple distinct TXT records with the same name. This is permitted by DNS standards.) N)�args�kwargs�returnc s<