← Back
Editing: standalone.cpython-38.pyc
U �]� � @ s d Z ddlZddlZddlZddlmZ ddlZddlZddlZ ddl mZ ddl mZ ddlmZmZmZmZmZmZmZ ddlmZ ddlmZ dd lmZ dd lmZ e�e�Zer�ee jeej f Z!G dd� de"�Z#e j$�%ej&�e j$�'ej(�G d d� dej)���Z*dd� Z+dS )zStandalone Authenticator.� N)�errno)� challenges)� standalone)�DefaultDict�Dict�Set�Tuple�List�Type� TYPE_CHECKING)�achallenges)�errors)� interfaces)�commonc @ s2 e Zd ZdZdd� Zddd�Zdd� Zd d � ZdS ) � ServerManagera� Standalone servers manager. Manager for `ACMEServer` and `ACMETLSServer` instances. `certs` and `http_01_resources` correspond to `acme.crypto_util.SSLSocket.certs` and `acme.crypto_util.SSLSocket.http_01_resources` respectively. All created servers share the same certificates and resources, so if you're running both TLS and non-TLS instances, HTTP01 handlers will serve the same URLs! c C s i | _ || _|| _d S �N)� _instances�certs�http_01_resources)�selfr r � r �</usr/lib/python3/dist-packages/certbot/plugins/standalone.py�__init__, s zServerManager.__init__� c C s� |t jkst�|| jkr"| j| S ||f}zt�|| j�}W n0 tjk rl } zt � ||��W 5 d}~X Y nX |�� |�� d d }|| j|<