Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/test/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/test/__pycache__/make_ssl_certs.cpython-33.pyo

�
��f^c@sVdZddlZddlZddlZddlTdZejjejje	��Z
dd�ZedkrRej
e
�ed�\ZZed	d
��Zeje�WdQXedd
��Zeje�WdQXedd
��!Zeje�eje�WdQXed
�\ZZedd
��!Zeje�eje�WdQXndS(uOMake the custom certificate and private key files used by test_ssl
and friends.iN(u*u�
    [req]
    distinguished_name     = req_distinguished_name
    x509_extensions        = req_x509_extensions
    prompt                 = no

    [req_distinguished_name]
    C                      = XY
    L                      = Castle Anthrax
    O                      = Python Software Foundation
    CN                     = {hostname}

    [req_x509_extensions]
    subjectAltName         = DNS:{hostname}
    cCsEg}x?td�D]1}tjdd��}|j|j�WdQXqW|\}}}z�t|d�� }|jtj	d|��WdQXddddd	d
ddd
|d|d|g}t
dg|�t|d��}|j�}WdQXt|d��}|j�}	WdQX||	fSWdx|D]}
tj
|
�q)WXdS(Niudeleteuwuhostnameurequ-newu-daysu3650u-nodesu-x509u-newkeyursa:1024u-keyoutu-outu-configuopensslurF(urangeutempfileuNamedTemporaryFileuFalseuappendunameuopenuwriteureq_templateuformatu
check_callureaduosuremove(uhostnameu	tempnamesuiufureq_fileu	cert_fileukey_fileuargsucertukeyuname((u8/opt/alt/python33/lib64/python3.3/test/make_ssl_certs.pyu
make_cert_keys&
u
make_cert_keyu__main__u	localhostussl_cert.pemuwussl_key.pemukeycert.pemufakehostnameukeycert2.pem(u__doc__uosusysutempfileu
subprocessureq_templateupathuabspathudirnameu__file__uhereu
make_cert_keyu__name__uchdirucertukeyuopenufuwrite(((u8/opt/alt/python33/lib64/python3.3/test/make_ssl_certs.pyu<module>s*