403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /snap/certbot/current/lib/python3.12/site-packages/acme/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/certbot/current/lib/python3.12/site-packages/acme/__pycache__/challenges.cpython-312.pyc
�

:Kh0\���dZddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	ddlm
Z
ddlmZddlmZdd	lm
Z
dd
lmZddlmZddlZddlmZdd
lmZddlZddlmZddlmZddlZddlmZddlmZej<e�Z edd��Z!Gd�dejD�Z#Gd�dejD�Z$Gd�de#�Z%Gd�de#�Z&Gd�de$�Z'Gd�de&ejP� �Z)e$jTGd!�d"e'��Z+e#jTGd#�d$e)��Z,e$jTGd%�d&e'��Z-e#jTGd'�d(e)��Z.e$jTGd)�d*e'��Z/e#jTGd+�d,e)��Z0e#jTGd-�d.e&��Z1e$jTGd/�d0e$��Z2y)1z&ACME Identifier Validation Challenges.�N)�Any)�cast)�Dict)�Mapping)�Optional)�Tuple)�Type)�TypeVar)�Union)�x509)�hashes)�crypto)�SSL)�crypto_util)�errors�GenericChallenge�	Challenge)�boundc	�t��eZdZUdZiZeeedfed<e	dee
deeefde
e
dff�fd��Z�xZS)rzACME challenge.�TYPES�cls�jobj�return�UnrecognizedChallengec����	ttt�|�
|��S#tj
$r4}tj|�tj|�cYd}~Sd}~wwxYw�N)	rr�super�	from_json�jose�UnrecognizedTypeError�logger�debugr)rr�error�	__class__s   ��/build/snapcraft-certbot-96d641e948b53801324821d152d90051/parts/certbot/install/lib/python3.12/site-packages/acme/challenges.pyrzChallenge.from_json&sS���	9��(�%�'�*;�D�*A�B�B���)�)�	9��L�L���(�2�2�4�8�8��	9�s� �A'�)A"�A'�"A')�__name__�
__module__�__qualname__�__doc__rr�strr	�__annotations__�classmethodrrrrr�
__classcell__�r$s@r%rr!sc����*,�E�4��T�+�&�&�'�,��9�t�,�-�9���S��)�9�.3�4D�F]�4]�.^�9��9�c�R��eZdZUdZiZeeedfed<deee	ff�fd�Z
�xZS)�ChallengeResponsezACME challenge response.rrc�\��t�|��}|j|jd�|Sr)r�to_partial_json�pop�type_field_name��selfrr$s  �r%r3z!ChallengeResponse.to_partial_json5s+����w�&�(������%�%�t�,��r/)r&r'r(r)rrr*r	r+rr3r-r.s@r%r1r10s9���"�24�E�4��T�-�.�.�/�4���c�3�h���r/r1c���eZdZUdZeeefed<deeefddf�fd�Z	deeeffd�Z
edeeefddfd��Z�xZ
S)ralUnrecognized challenge.

    ACME specification defines a generic framework for challenges and
    defines some standard challenges that are implemented in this
    module. However, other implementations (including peers) might
    define additional challenge types, which should be ignored if
    unrecognized.

    :ivar jobj: Original JSON decoded object.

    rrNc�P��t�|��tj|d|�y)Nr)r�__init__�object�__setattr__r6s  �r%r:zUnrecognizedChallenge.__init__Ks ���
�������4���.r/c��|jSr)r�r7s r%r3z%UnrecognizedChallenge.to_partial_jsonOs���y�y�r/c��||�Sr�)rrs  r%rzUnrecognizedChallenge.from_jsonRs���4�y�r/)r&r'r(r)rr*rr+rr:r3r,rr-r.s@r%rr=st���
��s�C�x�.��/�W�S�#�X�.�/�4�/���c�3�h�����W�S�#�X�.��3J���r/rc	��eZdZUdZdZ	ejdejejejed����Zee
d<edefd��Zy	)
�_TokenChallengez3Challenge with token.

    :ivar bytes token:

    ��tokenT)�size�minimum)�encoder�decoderrc�>�d|jvxrd|jvS)z�Is `token` good?

        .. todo:: acme-spec wants "It MUST NOT contain any non-ASCII
           characters", but it should also warrant that it doesn't
           contain ".." or "/"...

        s..�/)rDr>s r%�
good_tokenz_TokenChallenge.good_tokenfs!���D�J�J�&�A�4�t�z�z�+A�Ar/N)r&r'r(r)�
TOKEN_SIZEr�field�encode_b64jose�	functools�partial�decode_b64joserD�bytesr+�property�boolrKr@r/r%rBrBWss���
�J�5��4�:�:���,�,�6G�i�6G�6G����j�$�7@�A�E�5�A�
�B�D�B��Br/rBc���eZdZUdZej
d�Zeed<e	jZdddejde
fd�Zdeeeff�fd	�Z�xZS)
�!KeyAuthorizationChallengeResponsez[Response to Challenges based on Key Authorization.

    :param str key_authorization:

    �keyAuthorization�key_authorization�chall�KeyAuthorizationChallenge�account_public_keyrc���|jjd�}t|�dk7r!tj	d|j�y|d|jd�k7r*tj	d|d|jd��yt
j|j|j���j�}|d	|k7rtj	d
|d|�yy)a%Verify the key authorization.

        :param KeyAuthorization chall: Challenge that corresponds to
            this response.
        :param JWK account_public_key:

        :return: ``True`` iff verification of the key authorization was
            successful.
        :rtype: bool

        �.�z)Key authorization (%r) is not well formedFrrDz8Mismatching token in key authorization: %r instead of %r��
hash_function�z=Mismatching thumbprint in key authorization: %r instead of %rT)rX�split�lenr!r"�encoder�	b64encode�
thumbprint�thumbprint_hash_function�decode)r7rYr[�partsrfs     r%�verifyz(KeyAuthorizationChallengeResponse.verify~s����&�&�,�,�S�1���u�:��?��L�L�D��/�/�
1����8�u�|�|�G�,�,��L�L�,�-2�1�X�u�|�|�G�7L�
N���^�^�$6�$A�$A��7�7�%B�%9�:�:@�&�(�	���8�z�!��L�L�,�-2�1�X�z�
C��r/c�H��t�|��}|jdd�|S)NrW)rr3r4r6s  �r%r3z1KeyAuthorizationChallengeResponse.to_partial_json�s$����w�&�(�����#�T�*��r/)r&r'r(r)rrMrXr*r+r
�SHA256rg�JWKrTrjrrr3r-r.s@r%rVrVuse����
(�T�Z�Z�(:�;��s�;�%�}�}���7��T�X�X��Z^��@��c�3�h���r/rVc
��eZdZUdZeZeed<eZe	e
ed<e
jZdejdefd�Zdejde
fd�Zej"dejdedefd	��Zdejd
ededee
effd�Zy)
rZz�Challenge based on Key Authorization.

    :param response_cls: Subclass of `KeyAuthorizationChallengeResponse`
        that will be used to generate ``response``.
    :param str typ: type of the challenge
    �typ�response_cls�account_keyrc��|jd�dztj|j|j���j�zS)zZGenerate Key Authorization.

        :param JWK account_key:
        :rtype str:

        rDr]r_)rdrrerfrgrh�r7rqs  r%rXz+KeyAuthorizationChallenge.key_authorization�sO���{�{�7�#�c�)�D�N�N��"�"�"�;�;�
#�
=�->�>D�f�h�G�	Gr/c�D�|j|j|���S)z�Generate response to the challenge.

        :param JWK account_key:

        :returns: Response (initialized `response_cls`) to the challenge.
        :rtype: KeyAuthorizationChallengeResponse

        �rX)rprXrss  r%�responsez"KeyAuthorizationChallenge.response�s,��� � �"�4�4�[�A�!�C�	Cr/�kwargsc��t��)a�Generate validation for the challenge.

        Subclasses must implement this method, but they are likely to
        return completely different data structures, depending on what's
        necessary to complete the challenge. Interpretation of that
        return value must be known to the caller.

        :param JWK account_key:
        :returns: Challenge-specific validation.

        )�NotImplementedError�r7rqrws   r%�
validationz$KeyAuthorizationChallenge.validation�s
��"�#�#r/�argsc�P�|j|�|j|g|��i|��fS)z�Generate response and validation.

        Convenience function that return results of `response` and
        `validation`.

        :param JWK account_key:
        :rtype: tuple

        )rvr{)r7rqr|rws    r%�response_and_validationz1KeyAuthorizationChallenge.response_and_validation�s2���
�
�k�*������=�d�=�f�=�?�	?r/N)r&r'r(r)�NotImplementedror*r+rpr	rVrgrrmrXrv�abc�abstractmethodrr{rr~r@r/r%rZrZ�s�����C���<J�L�$�8�9�J�)�B�B��	G�T�X�X�	G�#�	G�
C�D�H�H�
C�1R�
C�	���$�d�h�h�$�#�$�#�$��$�?�4�8�8�?�C�?�SV�?�%*�+L�c�+Q�%R�?r/rZ)�	metaclassc�@�eZdZdZdZdddedejdefd�Z	y	)
�
DNS01ResponsezACME dns-01 challenge response.zdns-01rY�DNS01�domainr[rc�X�|j||�}|stjd�|S)a�Simple verify.

        This method no longer checks DNS records and is a simple wrapper
        around `KeyAuthorizationChallengeResponse.verify`.

        :param challenges.DNS01 chall: Corresponding challenge.
        :param str domain: Domain name being verified.
        :param JWK account_public_key: Public key for the key pair
            being authorized.

        :return: ``True`` iff verification of the key authorization was
            successful.
        :rtype: bool

        �4Verification of key authorization in response failed)rjr!r")r7rYr�r[�verifieds     r%�
simple_verifyzDNS01Response.simple_verify�s*�� �;�;�u�&8�9����L�L�O�P��r/N)
r&r'r(r)ror*rrmrTr�r@r/r%r�r��s0��)�
�C��7��C��T�X�X��Z^�r/r�c�j�eZdZdZeZejZdZ	dejde
defd�Zdedefd�Z
y	)
r�zACME dns-01 challenge.�_acme-challengerq�
unused_kwargsrc���tjtj|j	|�jd��j
��j�S)�SGenerate validation.

        :param JWK account_key:
        :rtype: str

        �utf-8)rre�hashlib�sha256rXrd�digestrh�r7rqr�s   r%r{zDNS01.validationsG���~�~�g�n�n�T�-C�-C��.�����*�*0�&�(�4�4:�F�H�	=r/�namec�$�|j�d|��S)z{Domain name for TXT validation record.

        :param str name: Domain name being validated.
        :rtype: str

        r])�LABEL�r7r�s  r%�validation_domain_namezDNS01.validation_domain_names���*�*��Q�t�f�%�%r/N)r&r'r(r)r�rpror�rrmrr*r{r�r@r/r%r�r�sN�� � �L�
�
�
�C��E�C�=�d�h�h�=��=��=�&�3�&�3�&r/r�c
�^�eZdZdZdZdZ	dZ		dddded	ejd
e
ededefd
�Z
y)�HTTP01Responsez ACME http-01 challenge response.zhttp-01�Pz

	 NrY�HTTP01r�r[�port�timeoutrc���|j||�stjd�y|�9||jk7r*tj	d|�|dj|�z
}|j
|�}tjd|j|�	tj|d|��}d	|_
tjd
||j|j�|jj!|j"�}	|j$|	k7r"tjd|j$|	�yy#tjj$r!}tjd||�Yd}~yd}~wwxYw)
a�Simple verify.

        :param challenges.SimpleHTTP chall: Corresponding challenge.
        :param str domain: Domain name being verified.
        :param JWK account_public_key: Public key for the key pair
            being authorized.
        :param int port: Port used in the validation.
        :param int timeout: Timeout in seconds.

        :returns: ``True`` iff validation with the files currently served by the
            HTTP server is successful.
        :rtype: bool

        r�FNz4Using non-standard port for http-01 verification: %sz:{0}zVerifying %s at %s...)rjr�zUnable to reach %s: %s�asciizReceived %s: %s. Headers: %szEKey authorization from response (%r) doesn't match HTTP response (%r)T)rjr!r"�PORT�warning�format�uriro�requests�get�
exceptions�RequestExceptionr#�encoding�text�headers�rstrip�WHITESPACE_CUTSETrX)
r7rYr�r[r�r�r��
http_responser#�challenge_responses
          r%r�zHTTP01Response.simple_verify0sG�� �{�{�5�"4�5��L�L�O�P��
����	�	� 1��N�N�F��
N��f�m�m�D�)�)�F��i�i�������,�e�i�i��=�	�$�L�L��U�G�L�M�")�
�����3�]�"�'�'��)>�)>�	@�+�/�/�6�6�t�7M�7M�N���!�!�%7�7��L�L�.�/3�/E�/E�+�
-����-�"�"�3�3�	��L�L�1�3��>���	�s�D9�9E7�E2�2E7)N�)r&r'r(r)ror�r�r*rrmr�intrTr�r@r/r%r�r� s`��*�
�C�
�D��"��O�BD�6�8�6�S�6�d�h�h�6�$�S�M�6�;>�6�HL�6r/r�c��eZdZdZeZejZdZ	ede	fd��Z
de	de	fd�Zdejdede	fd	�Zy
)r�zACME http-01 challenge.z.well-known/acme-challengerc�J�d|jzdz|jd�zS)zQPath (starting with '/') for provisioned resource.

        :rtype: str

        �/rD)�
URI_ROOT_PATHrdr>s r%�pathzHTTP01.pathrs(���T�'�'�'�#�-����G�0D�D�Dr/r�c�&�d|z|jzS)z�Create an URI to the provisioned resource.

        Forms an URI to the HTTPS server provisioned resource
        (containing :attr:`~SimpleHTTP.token`).

        :param str domain: Domain name being verified.
        :rtype: str

        zhttp://)r�)r7r�s  r%r�z
HTTP01.uri{s���6�!�D�I�I�-�-r/rqr�c�$�|j|�S)r�rur�s   r%r{zHTTP01.validation�s���%�%�k�2�2r/N)r&r'r(r)r�rpror�rSr*r�r�rrmrr{r@r/r%r�r�isj��!�!�L�
�
�
�C�0�M�<�
�E�c�E��E�
.�#�
.�#�
.�3�d�h�h�3��3��3r/r�c���eZdZdZdZdZ	dZdZdededd	f�fd
�Z	e
defd��Zdde
d
eej dedeej(ej ffd�Z		dde
dee
deedej(fd�Zde
dej(defd�Z		dddde
dej4deej(dee
deedefd�Z�xZS)�TLSALPN01ResponsezEACME tls-alpn-01 challenge response.

    .. deprecated:: 4.1.0

    ztls-alpn-01i�s1.3.6.1.5.5.7.1.30.1s
acme-tls/1r|rwrNc�X��tjdt�t�|�|i|��y)Nz_TLSALPN01Response is deprecated and will be removed in an upcoming certbot major version update��warnings�warn�DeprecationWarningrr:�r7r|rwr$s   �r%r:zTLSALPN01Response.__init__��*����
�
�4�5G�	I�
���$�)�&�)r/c�z�tj|jjd��j	�S)z*Hash value stored in challenge certificater�)r�r�rXrdr�r>s r%�hzTLSALPN01Response.h�s-���~�~�d�4�4�;�;�G�D�E�L�L�N�Nr/r��key�bitsc���|�4tj�}|jtj|�t	j
|jj��}t	j|dt	j||j���}|j�}t|tj�sJ�tj||gd|g��}||fS)a�Generate tls-alpn-01 certificate.

        :param str domain: Domain verified by the challenge.
        :param OpenSSL.crypto.PKey key: Optional private key used in
            certificate generation. If not provided (``None``), then
            fresh key will be generated.
        :param int bits: Number of bits for newly generated key.

        :rtype: `tuple` of `x509.Certificate` and `OpenSSL.crypto.PKey`

        T)�critical�value)�	force_san�
extensions)r�PKey�generate_key�TYPE_RSAr�ObjectIdentifier�ID_PE_ACME_IDENTIFIER_V1rh�	Extension�UnrecognizedExtensionr��to_cryptography_key�
isinstancer�#CertificateIssuerPrivateKeyTypesTpl�make_self_signed_cert)r7r�r�r��oid�acme_extension�cryptography_key�certs        r%�gen_certzTLSALPN01Response.gen_cert�s����;��+�+�-�C����V�_�_�d�3��#�#�D�$A�$A�$H�$H�$J�K��������,�,�S�$�&�&�9�
���2�2�4���*�K�,[�,[�\�\�\��0�0��
�H��&�'�	
���S�y�r/�hostr�c�|�|�,tj|�}tjd||�|�|j}tj�5tjdd��tj|j�||j�|jg��cddd�S#1swYyxYw)z�Probe tls-alpn-01 challenge certificate.

        :param str domain: domain being validated, required.
        :param str host: IP address used to probe the certificate.
        :param int port: Port used to probe the certificate.

        Nz%s resolved to %s�ignorez&alpn_protocols parameter is deprecated)�message)r�r�r��alpn_protocols)�socket�
gethostbynamer!r"r�r��catch_warnings�filterwarningsr�	probe_snird�ACME_TLS_1_PROTOCOL)r7r�r�r�s    r%�
probe_certzTLSALPN01Response.probe_cert�s����<��'�'��/�D��L�L�,�f�d�;��<��9�9�D�
�
$�
$�
&�	P��#�#��@�
��(�(�d�k�k�m�$�V�]�]�_�59�5M�5M�4N�P�	P�	P�	P�s
�AB2�2B;r�c�~�tj|j|j�}tjd|j
tj��|�t|�dk7s$|dj�|j�k7ry	|jjtj|jj���}t#|j$tj&�sJ�|j$j$|j(k(S#tj $rYywxYw)a'Verify tls-alpn-01 challenge certificate.

        :param str domain: Domain name being validated.
        :param cert: Challenge certificate.
        :type cert: `cryptography.x509.Certificate`

        :returns: Whether the certificate was successfully verified.
        :rtype: bool

        zCertificate %s. SANs: %srarF)r�%get_names_from_subject_and_extensions�subjectr�r!r"�fingerprintr
rlrc�lower�get_extension_for_oidrr�r�rh�ExtensionNotFoundr�r�r�r�)r7r�r��names�exts     r%�verify_certzTLSALPN01Response.verify_cert�s����A�A��L�L�$�/�/�
��	���&��(8�(8�����(I�5�	
��u�:��?�e�A�h�n�n�.�&�,�,�.�@��	��/�/�7�7��%�%�d�&C�&C�&J�&J�&L�M��C��#�)�)�T�%?�%?�@�@�@��y�y���$�&�&�(�(���%�%�	��	�s�AD&�&D<�;D<rY�	TLSALPN01r[c�$�|j||�stjd�y|�	|j|||��}|j||�S#tj
$r*}tjt
|�d��Yd}~yd}~wwxYw)a�Simple verify.

        Verify ``validation`` using ``account_public_key``, optionally
        probe tls-alpn-01 certificate and check using `verify_cert`.

        :param .challenges.TLSALPN01 chall: Corresponding challenge.
        :param str domain: Domain name being validated.
        :param JWK account_public_key:
        :param x509.Certificate cert: Optional certificate. If not
            provided (``None``) certificate will be retrieved using
            `probe_cert`.
        :param string host: IP address used to probe the certificate.
        :param int port: Port used to probe the certificate.


        :returns: ``True`` if and only if client's control of the domain has been verified.
        :rtype: bool

        r�FN)r�r�r�T)�exc_info)rjr!r"r�r�Errorr*r�)r7rYr�r[r�r�r�r#s        r%r�zTLSALPN01Response.simple_verifys���,�{�{�5�"4�5��L�L�O�P���<�
����f�4�d��K��
�����-�-��	�<�<�
����S��Z�$��7���
�s�A�B�% B
�
B)Ni)NN)NNN)r&r'r(r)ror�r�r�rr:rSrRr�r*rrr�r�rr�Certificater�r�rTr�rrmr�r-r.s@r%r�r��s]����
�C��D�� 7��'��*�c�*�S�*�T�*�
�O�5�O��O� �s� ��&�+�+�)>� �S� ��D�,�,�f�k�k�9�:� �D=A�)-�P��P�H�S�M�P�!�#��P�26�2B�2B�P�.)�#�)�T�-=�-=�)�D�)�BVZ�,0�!.�;�!.��!.�QU�QY�QY�!.�$�T�%5�%5�6�!.�EM�c�]�!.�$�S�M�!.�59�!.r/r�c���eZdZdZeZejZdededdf�fd�Zde	jdedeejejffd�Zedefd	��Z�xZS)
r�z<ACME tls-alpn-01 challenge.

    .. deprecated:: 4.1.0

    r|rwrNc�X��tjdt�t�|�|i|��y)N�WTLSALPN01 is deprecated and will be removed in an upcoming certbot major version updater�r�s   �r%r:zTLSALPN01.__init__6r�r/rqc	��tt|j|��j|j	d�tt
|j	d����S)a}Generate validation.

        :param JWK account_key:
        :param str domain: Domain verified by the challenge.
        :param OpenSSL.crypto.PKey cert_key: Optional private key used
            in certificate generation. If not provided (``None``), then
            fresh key will be generated.

        :rtype: `tuple` of `x509.Certificate` and `OpenSSL.crypto.PKey`

        �cert_keyr�)r�r�)rr�rvr�r�r*rzs   r%r{zTLSALPN01.validation;sM���%�t�}�}�[�'A�B�K�K��
�
�:�&���V�Z�Z��1�2�L�4�	4r/c��tjdt�ttj
d�xrttjd�S)ai
        Check if TLS-ALPN-01 challenge is supported on this machine.
        This implies that a recent version of OpenSSL is installed (>= 1.0.2),
        or a recent cryptography version shipped with the OpenSSL library is installed.

        :returns: ``True`` if TLS-ALPN-01 is supported on this machine, ``False`` otherwise.
        :rtype: bool

        r��set_alpn_protos�set_alpn_select_callback)r�r�r��hasattrr�
Connection�Contextr@r/r%�is_supportedzTLSALPN01.is_supportedMsC��	�
�
�4�5G�	I�����(9�:�E��C�K�K�)C�D�	Fr/)r&r'r(r)r�rprorr:rrmrrr�rr�r{�staticmethodrTrr-r.s@r%r�r�,s�����
%�L�
�
�
�C�*�c�*�S�*�T�*�
4�d�h�h�4� �4�%*�4�+;�+;�V�[�[�+H�%I�4�$�
F�$�
F��
Fr/r�c	��eZdZdZdZdZ	ejfdejdejde
dejfd�Zd	ejd
ejde
fd�Zdejde
ddfd
�Zdedefd�Zy)�DNSzACME "dns" challenge.�dnsr�rq�algrwrc��tjjd|jd��j	d�||d�|��S)z�Generate validation.

        :param .JWK account_key: Private account key.
        :param .JWA alg:

        :returns: This challenge wrapped in `.JWS`
        :rtype: .JWS

        T)�	sort_keysr�)�payloadr�rr@)r�JWS�sign�
json_dumpsrd)r7rqrrws    r%�gen_validationzDNS.gen_validationfsD���x�x�}�}�0��O�O�d�O�3�:�:�7�C���0�(.�0�	0r/r{r[c���|j|��sy	||j|jjd��k(S#tj
$r }tjd|�Yd}~yd}~wwxYw)zwCheck validation.

        :param JWS validation:
        :param JWK account_public_key:
        :rtype: bool

        )r�Fr�z&Checking validation for DNS failed: %sN)rj�
json_loadsr
rhr�DeserializationErrorr!r")r7r{r[r#s    r%�check_validationzDNS.check_validationusr��� � �%7� �8��	��4�?�?��"�"�)�)�'�2�4�4�
4���(�(�	��L�L�A�5�I���	�s�,A�A5�A0�0A5�DNSResponsec�<�t|j|fi|����S)z�Generate response.

        :param .JWK account_key: Private account key.
        :param .JWA alg:

        :rtype: DNSResponse

        )r{)rrrzs   r%�gen_responsezDNS.gen_response�s"���&9�d�&9�&9�+�&P��&P�Q�Qr/r�c�:�dj|j|�S)zgDomain name for TXT validation record.

        :param str name: Domain name being validated.

        z{0}.{1})r�r�r�s  r%r�zDNS.validation_domain_name�s������
�
�D�1�1r/N)r&r'r(r)ror�r�RS256rm�JWASignaturerrrrTrrr*r�r@r/r%rr^s����
�C��E�C�MQ�Z�Z�
0�$�(�(�
0��9J�9J�
0�!$�
0�)-���
0��4�8�8������VZ��"	R����	R�C�	R�M�	R�2�3�2�3�2r/rc��eZdZUdZdZejdejj��Z	eje
d<dddejdefd	�Z
y
)rz@ACME "dns" challenge response.

    :param JWS validation:

    rr{)rHrYrr[rc�:�|j|j|�S)z~Check validation.

        :param challenges.DNS chall:
        :param JWK account_public_key:

        :rtype: bool

        )rr{)r7rYr[s   r%rzDNSResponse.check_validation�s���%�%�d�o�o�7I�J�Jr/N)r&r'r(r)rorrMrrr{r+rmrTrr@r/r%rr�sU���
�C�%�4�:�:�l�D�H�H�<N�<N�O�J����O�	K�e�	K����	K�d�	Kr/r)3r)r�rOr��loggingr��typingrrrrrrr	r
rr��cryptographyr�cryptography.hazmat.primitivesr
�josepyr�OpenSSLrrr��acmerr�	getLoggerr&r!r�TypedJSONObjectWithFieldsrr1rrBrV�ABCMetarZ�registerr�r�r�r�r�r�rrr@r/r%�<module>r&s���,�
����
������������1�������	��	�	�8�	$���-�[�A��9��.�.�9�
��6�6�
��I��4B�i�B�<,�(9�,�d>?��3�;�;�>?�B����5����4���&�%�&��&�8���E�6�E��E�P���$3�
&�$3��$3�N���W.�9�W.��W.�t���.F�)�.F��.F�b���82�/�82��82�v���K�#�K��Kr/

Youez - 2016 - github.com/yon3zu
LinuXploit