%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/certbot/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/certbot/tests/__pycache__/acme_util.cpython-312.pyc

�

M/�e�
�
�"�dZddlZddlmZddlmZddlmZddlZddlm	Z	ddlm
Z
ddlmZdd	l
mZejj!ej"d
��Zej$d
�Ze	j(d��Ze	j*d
��Ze	j*d��ZeegZde	j0de
j2de
j4fd�Zeee
j8�Zeee
j8�Zeee
j8�ZeegZ ejBeed�Z"ejBeed�Z#ejBeed�Z$e"e#gZ%de
j2de&dee	j0dee
j2de
jNf
d�Z(y)zACME utilities for testing.�N)�Any)�Dict)�Iterable)�
challenges)�messages)�auth_handler)�utilzrsa512_key.pems+evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ+PCt92wr+oA)�tokens 17817c66b60ce2e4012dfad92657527as cafecafecafecafecafecafe0feedbac�chall�status�returnc���||jdz|d�}|tjk(r/|jdtjj�i�tjdi|��S)z$Return ChallengeBody from Challenge.�_uri)r�urir�	validated�)�typr�STATUS_VALID�update�datetime�now�
ChallengeBody)rr�kwargss   �9/usr/lib/python3/dist-packages/certbot/tests/acme_util.py�chall_to_challbrsa����y�y�6�!���F���&�&�&��
�
�{�H�$5�$5�$9�$9�$;�<�=��!�!�+�F�+�+�zexample.comzexample.orgzesimerkki.example.org�authz_status�domain�challs�statusesc��td�t||�D��}tjtj|��|d�}|tj
k(rH|j
|tjj�tjd��zd��n|j
d|i�tjdtjd
i|���	�S)z�Generate an authorization resource.

    :param authz_status: Status object
    :type authz_status: :class:`acme.messages.Status`
    :param list challs: Challenge objects
    :param list statuses: status of each challenge object

    c3�:K�|]\}}t||����y�w)N)r)�.0rrs   r�	<genexpr>zgen_authzr.<locals>.<genexpr>Bs#������E�6�	��v�&��s�)r�value)�
identifierr�)�days)r�expiresrz%https://trusted.ca/new-authz-resource)r�bodyr)�tuple�zipr�
Identifier�IDENTIFIER_FQDNrrrr�	timedelta�AuthorizationResource�
Authorization)rrrr �challbs�authz_kwargss      r�
gen_authzrr48s����� ���2���G�
�)�)��(�(��8��$�L�
�x�,�,�,����"��(�(�,�,�.��1C�1C��1L�L�
�	�
	����l�
�	��)�)�3�
�
#�
#�
3�l�
3��r))�__doc__r�typingrrr�josepy�jose�acmerr�certbot._internalr�
certbot.testsr	�JWK�load�load_vector�load_rsa_private_key�KEY�HTTP01�DNS01�DNS01_2�
CHALLENGES�	Challenge�Statusrr�STATUS_PENDING�HTTP01_P�DNS01_P�	DNS01_P_2�CHALLENGES_P�challb_to_achall�HTTP01_A�DNS01_A�	DNS01_A_2�ACHALLENGES�strr0r4rrr�<module>rRs���!��������*��
�h�h�m�m�$�D�$�$�%5�6�7���d��� 0�1��
��	�	�
8�
:���
���B�C��
�*�
�
�!D�
E���e�_�
�,�:�/�/�,����,�X�Mc�Mc�,��6�8�#:�#:�;��
�%��!8�!8�
9���G�X�%<�%<�=�	��'�"��)�<�(�(��3�
�F��
'�,�
'�
'���m�
D��)�L�)�)�)�S�:Q�R�	���!�� �X�_�_� �c� �8�J�L`�L`�Ca� �!�(�/�/�2� �7?�7U�7U� r

Zerion Mini Shell 1.0