Spade

Mini Shell

Directory:~$ /proc/self/root/usr/lib/python2.7/site-packages/certbot/tests/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pyc

�
���_c@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZejj
ejd��Zejd�Zejdd	�Zejdd
�Zejdd�ZeegZd�Zd
�Zeeej�Zeeej�Zeeej�ZeegZe	jeed�Ze	jeed�Ze	jeed�ZeegZ
e!d�Z"dS(sACME utilities for testing.i����N(t
challenges(tmessages(tauth_handler(tutilsrsa512_key.pemttokens+evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ+PCt92wr+oAt
17817c66b60ce2e4012dfad92657527at
cafecafecafecafecafecafe0feedbaccCstd�t|�D��S(s*Generate
natural combinations for
challbs.css|]\}}|fVqdS(N((t.0tit_((s;/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pys	<genexpr>s(ttuplet	enumerate(tchallbs((s;/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pyt
gen_combosscCs^i|d6|jdd6|d6}|tjkrQ|jitjj�d6�ntj|�S(s$Return
ChallengeBody from
Challenge.tchallt_urituritstatust	validated(ttypRtSTATUS_VALIDtupdatetdatetimetnowt
ChallengeBody(RRtkwargs((s;/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pytchall_to_challbs

sexample.comsexample.orgsesimerkki.example.orgcCs�td�tjj||�D��}itjdtjd|�d6|d6}|rq|jit|�d6�n|tj	kr�|ji|d6t
j
j�t
jdd	�d
6�n|ji|d6�tj
ddd
tj|��S(s&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||�VqdS(N(R(RRR((s;/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pys	<genexpr>GsRtvaluet
identifierRtcombinationsRtdaysitexpiresRs%https://trusted.ca/new-authz-resourcetbody(R
tsixtmovestzipRt
IdentifiertIDENTIFIER_FQDNRR
RRRt	timedeltatAuthorizationResourcet
Authorization(tauthz_statustdomaintchallststatusestcombosRtauthz_kwargs((s;/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pyt
gen_authzr<s$
	
	'		(#t__doc__RtjosepytjoseR!tacmeRRtcertbot._internalRt
certbot.testsRtJWKtloadtload_vectortload_rsa_private_keytKEYtHTTP01tDNS01tDNS01_2t
CHALLENGESR
RtSTATUS_PENDINGtHTTP01_PtDNS01_Pt	DNS01_P_2tCHALLENGES_Ptchallb_to_achalltHTTP01_AtDNS01_At	DNS01_A_2tACHALLENGEStTrueR/(((s;/usr/lib/python2.7/site-packages/certbot/tests/acme_util.pyt<module>s2