%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/win_certutil.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZddlZej	e
�ZdZd�Z
d�Zd�Zdd	�Zdd
�ZdS(u�
This module allows you to install certificates into the windows certificate
manager.

.. code-block:: bash

    salt '*' certutil.add_store salt://cert.cer "TrustedPublisher"
i(tabsolute_importtunicode_literalstprint_functionNucertutilcC@stjjj�rtStS(u
    Only work on Windows
    (tsalttutilstplatformt
is_windowst__virtualname__tFalse(((s=/usr/lib/python2.7/site-packages/salt/modules/win_certutil.pyt__virtual__scC@sYdj|�}td|�}tjd|�}|dk	rQ|j�dj�SdSdS(u�
    Get the serial number of a certificate file

    cert_file
        The certificate file to find the serial for

    CLI Example:

    .. code-block:: bash

        salt '*' certutil.get_cert_serial <certificate name>
    u certutil.exe -silent -verify {0}ucmd.runu:\s*(\w*)\r\n\r\niN(tformatt__salt__tretsearchtNonetgroupststrip(t	cert_filetcmdtouttmatches((s=/usr/lib/python2.7/site-packages/salt/modules/win_certutil.pytget_cert_serial s
cC@s5dj|�}td|�}tjd|�}|S(u�
    Get all of the certificate serials in the specified store

    store
        The store to get all the certificate serials from

    CLI Example:

    .. code-block:: bash

        salt '*' certutil.get_stored_cert_serials <store>
    ucertutil.exe -store {0}ucmd.runu={16}\r\n.*:\s*(\w*)\r\n(R
RRtfindall(tstoreRRR((s=/usr/lib/python2.7/site-packages/salt/modules/win_certutil.pytget_stored_cert_serials7s
ubasecC@s3td||�}dj||�}td|�S(u�
    Add the given cert into the given Certificate Store

    source
        The source certificate file this can be in the form
        salt://path/to/file

    store
        The certificate store to add the certificate to

    saltenv
        The salt environment to use this is ignored if the path
        is local

    CLI Example:

    .. code-block:: bash

        salt '*' certutil.add_store salt://cert.cer TrustedPublisher
    u
cp.cache_fileucertutil.exe -addstore {0} {1}ucmd.run(RR
(tsourceRtsaltenvRR((s=/usr/lib/python2.7/site-packages/salt/modules/win_certutil.pyt	add_storeKscC@s?td||�}t|�}dj||�}td|�S(u�
    Delete the given cert into the given Certificate Store

    source
        The source certificate file this can be in the form
        salt://path/to/file

    store
        The certificate store to delete the certificate from

    saltenv
        The salt environment to use this is ignored if the path
        is local

    CLI Example:

    .. code-block:: bash

        salt '*' certutil.del_store salt://cert.cer TrustedPublisher
    u
cp.cache_fileucertutil.exe -delstore {0} {1}ucmd.run(RRR
(RRRRtserialR((s=/usr/lib/python2.7/site-packages/salt/modules/win_certutil.pyt	del_storees(t__doc__t
__future__RRRRtloggingtsalt.utils.platformRt	getLoggert__name__tlogRR	RRRR(((s=/usr/lib/python2.7/site-packages/salt/modules/win_certutil.pyt<module>	s				

Zerion Mini Shell 1.0