KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /lib/python3/dist-packages/certbot/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/certbot/tests/__pycache__/acme_util.cpython-38.pyc
U

�]f�@sdZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZej�
e�d��Ze�d�Zejdd	�Zejd
d	�Zejdd	�ZeegZdd
�Zdd�Zeeej�Zeeej�Zeeej�ZeegZe	�eed�Ze	�eed�Ze	�eed�ZeegZ ddd�Z!dS)zACME utilities for testing.�N)�
challenges)�messages)�auth_handler)�utilzrsa512_key.pems+evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ+PCt92wr+oA)�tokens 17817c66b60ce2e4012dfad92657527as cafecafecafecafecafecafe0feedbaccCstdd�t|�D��S)z*Generate natural combinations for challbs.css|]\}}|fVqdS�N�)�.0�i�_rr�9/usr/lib/python3/dist-packages/certbot/tests/acme_util.py�	<genexpr>szgen_combos.<locals>.<genexpr>)�tuple�	enumerate)�challbsrrr�
gen_combossrcCs<||jd|d�}|tjkr0|�dtj��i�tjf|�S)z$Return ChallengeBody from Challenge.Z_uri)�chall�uri�statusZ	validated)�typr�STATUS_VALID�update�datetime�nowZ
ChallengeBody)rr�kwargsrrr�chall_to_challb!s�
rzexample.comzexample.orgzesimerkki.example.orgTcCs�tdd�tj�||�D��}tjtj|d�|d�}|rH|�dt|�i�|tj	krv|�|t
j
��t
jdd�d��n|�d	|i�tj
d
tjf|�d�S)a&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
    :param bool combos: Whether or not to add combinations

    css|]\}}t||�VqdSr)r)r	rrrrrr
Js�zgen_authzr.<locals>.<genexpr>)r�value)Z
identifierr�combinations�)Zdays)rZexpiresrz%https://trusted.ca/new-authz-resource)rZbody)r�sixZmoves�ziprZ
IdentifierZIDENTIFIER_FQDNrrrrrZ	timedeltaZAuthorizationResourceZ
Authorization)Zauthz_statusZdomainZchallsZstatusesZcombosrZauthz_kwargsrrr�
gen_authzr?s0���
�
�
�r!)T)"�__doc__rZjosepyZjoserZacmerrZcertbotrZ
certbot.testsrZJWK�loadZload_vectorZload_rsa_private_keyZKEYZHTTP01ZDNS01ZDNS01_2Z
CHALLENGESrrZSTATUS_PENDINGZHTTP01_PZDNS01_PZ	DNS01_P_2ZCHALLENGES_PZchallb_to_achallZHTTP01_AZDNS01_AZ	DNS01_A_2ZACHALLENGESr!rrrr�<module>s4
�

Anon7 - 2021